]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: don't exit with an ambiguous value
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 16 Apr 2019 15:42:43 +0000 (17:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Apr 2019 16:14:29 +0000 (18:14 +0200)
commit4cf4b33744d79fdc7c8d6a47b3c553c4367f36a1
tree2d6cb82976bad7580b9e3570211198424512383b
parent32b690155067dd82c61f78d2052b50937bd4c0b3
BUG/MINOR: mworker: don't exit with an ambiguous value

When the sigchld handler is called and waitpid() returns -1,
the behavior of waitpid() with the status variable is undefined.
It is not a good idea to exit with the value contained in it.

Since this exit path does not use the exitcode variable, it means that
this is an expected and successful exit.

This should be backported in 1.9, code has moved,
mworker_catch_sigchld() is in haproxy.c.
src/mworker.c