]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: systemd-wrapper: don't leak zombie processes
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Tue, 2 Apr 2013 11:53:21 +0000 (13:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Apr 2013 12:34:51 +0000 (14:34 +0200)
commit47f922dd244a277cf41eba8bc93c9d660a884ed3
treef911f8970ca69631f82af497566f3a097f40e4f5
parenta890d072fc11b0c0b6e20b82ff98dcf945d28232
BUG/MEDIUM: systemd-wrapper: don't leak zombie processes

Formerly, if A was replaced by B, and then B by C before
A finished exiting, we didn't wait for B to finish so it
ended up as a zombie process.
Fix this by waiting randomly every child we spawn.

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
src/haproxy-systemd-wrapper.c