Re: [lxc-devel] [PATCH] start.c: handle potential signal flood

2013-08-29 Thread Stéphane Graber
On Thu, Aug 29, 2013 at 10:44:41AM -0500, Serge Hallyn wrote: > Signalfd does not guarantee that we'll get an event for every signal. > So if 3 tasks exit at the same time, we may get only one sigchld > event. Therefore, in signal_handler(), always check whether init has > exited. Do with with WN

[lxc-devel] [PATCH] start.c: handle potential signal flood

2013-08-29 Thread Serge Hallyn
Signalfd does not guarantee that we'll get an event for every signal. So if 3 tasks exit at the same time, we may get only one sigchld event. Therefore, in signal_handler(), always check whether init has exited. Do with with WNOWAIT so that we can still wait4 to cleanup the init after lxc_poll()