commit | 4cf4b33744d79fdc7c8d6a47b3c553c4367f36a1 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.com> | Tue Apr 16 17:42:43 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Apr 16 18:14:29 2019 +0200 |
tree | 2d6cb82976bad7580b9e3570211198424512383b | |
parent | 32b690155067dd82c61f78d2052b50937bd4c0b3 [diff] |
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.