]> git.ipfire.org Git - thirdparty/make.git/commit
jobserver: Ensure the named pipe is deleted on error
authorPaul Smith <psmith@gnu.org>
Sun, 8 Dec 2024 21:27:06 +0000 (16:27 -0500)
committerPaul Smith <psmith@gnu.org>
Mon, 9 Dec 2024 04:30:37 +0000 (23:30 -0500)
commitf12a4fddce3f0475a114505a373374cf20f387e8
treea79c61b7e437756c29079710c621295cd5f9143f
parent186522e480c42df9be4f4f7f4b12ee33b656782c
jobserver: Ensure the named pipe is deleted on error

Make sure the jobserver named pipe is deleted even if the
jobserver_setup() function calls fatal() and exits early.

* src/main.c (clean_jobserver): Always reset_jobserver().
* src/posixos.c (jobserver_setup): Set job_root up front.
* tests/test_driver.pl: Print out the logfile pathname on error.
For tests with regex matches this might be the only file available.
Don't print the base filename unless one is created.
src/main.c
src/posixos.c
tests/test_driver.pl