Re: [Sqlrelay-discussion] Dead children (zombies and sem undo)
Brought to you by:
mused
From: Renat S. <sr...@st...> - 2011-06-29 17:55:25
|
On 29.06.2011 21:25, David Muse wrote: > Renat, > > This will definitely improve things, but maybe we should just make the > scaler call reapChildren when it receives a SIGCHLD. Can you think of > any reason why we shouldn't do that? The problem is with signal handler rules. It could set only one type of static variable - sig_atomic_t. So I think it is possible to count reaped children in signal handler in variable n_reaped and then (since semset->wait(6) would exit and set EINTR) in the main code block SIGCHLD, change shm and set n_reaped to 0 . A little bit tricky, but should work. |