MEDIUM: mworker: workers exit when the master leaves
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 1 Jun 2017 15:38:55 +0000 (17:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Jun 2017 08:56:32 +0000 (10:56 +0200)
commite20b6a62f853d493c67945880d9f89b6f3b4adbf
tree99088a383118a8c57e310ada3cff6d3c2f445065
parent69f9b3bfa4ecee87cf95a6a8dc18c4a62ec126f9
MEDIUM: mworker: workers exit when the master leaves

This patch ensure that the children will exit when the master quits,
even if the master didn't send any signal.

The master and the workers are connected through a pipe, when the pipe
closes the children leave.
src/haproxy.c