On Fri, Dec 4, 2009 at 7:42 PM, Jun KAWAI <[email protected]> wrote: > I see that SIGCHLD which was sent before calling sigaction() for > SIGCHLD is delivered to the handler when program is linked to > libpthread.so. However, this behavior doesn't occur when program > isn't linked to libpthread.so. > > I feel the behavior of SIGCHLD when linked to libpthread.so > is strange, but I don't know whether the behavior is correct > or not.
It's a bug, due to how libpthread uses SIGCHLD to detect when a thread blocked in wait*() should be unblocked. The fix isn't entirely trivial and I'm not going to have a chance to look at it closely for quite a while, so please file a bug with "sendbug" so we don't lose track of this if I forget about it. Philip Guenther

