]> git.ipfire.org Git - thirdparty/make.git/commit
* src/posixos.c (job_root): Remember root jobserver instances
authorPaul Smith <psmith@gnu.org>
Sat, 15 Oct 2022 20:31:21 +0000 (16:31 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 15 Oct 2022 22:39:32 +0000 (18:39 -0400)
commit383eb3a923b95ee9959446a03e34d870f9d1f427
treef37b67c2a8f098cf829596f39b4d286a4a4bea02
parent01b1d4f40195ddb715bc8a5e2236a7fe2e92890f
* src/posixos.c (job_root): Remember root jobserver instances

(jobserver_setup): Set job_root to true.
(jobserver_clear): if we're the root instance and we're using a
FIFO, unlink it.  If we're not in a signal handler, free memory.
(jobserver_acquire_all): Call jobserver_clear().
(sync_root): Rename from sync_parent for consistency.
src/os.h
src/posixos.c