commit | d7ac02f58412526632ec7751aee56c04580be988 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Thu Jan 13 13:22:26 2011 +0300 |
committer | Kir Kolyshkin <kir@openvz.org> | Thu Jan 13 13:22:26 2011 +0300 |
tree | b16307078626886d15bf986a6fbfc85dc3671e33 | |
parent | 11ff8a43cb14b4b576a2810b74297cc7f419c4b0 [diff] |
vzeventd: fix child handler to avoid zombies Sometimes a signal is not delivered (and child_handler() is not called) for every single child exited or terminated, which causes zombies to appear. Use waitpid() and loop until all the children are properly reaped. Signed-off-by: Kir Kolyshkin <kir@openvz.org>