]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: ensure that we still quits with SIGINT
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 16 Apr 2019 15:42:44 +0000 (17:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Apr 2019 16:14:29 +0000 (18:14 +0200)
commit74f0ec3894d9f137415a7b209fc1a3f0f59e69d7
treeb2e2885a630d20523aab1e15afdfa8a0c23472a4
parent4cf4b33744d79fdc7c8d6a47b3c553c4367f36a1
BUG/MINOR: mworker: ensure that we still quits with SIGINT

Since the fix "BUG/MINOR: mworker: don't exit with an ambiguous value"
we are leaving with a EXIT_SUCCESS upon a SIGINT.

We still need to quit with a SIGINT when a worker leaves with a SIGINT.

This is done this way because vtest expect a 130 during the process
stop, haproxy without mworker returns a 130, so it should be the same in
mworker mode.

This should be backported in 1.9, with the previous patch ("BUG/MINOR:
mworker: don't exit with an ambiguous value").

Code has moved, mworker_catch_sigchld() is in haproxy.c.
src/mworker.c