Re: SIGCHLD not received

2012-05-30 Thread Denis Bilenko
On Wed, May 30, 2012 at 1:29 AM, Marc Lehmann schm...@schmorp.de wrote: On Tue, May 29, 2012 at 10:57:31PM +0400, Denis Bilenko denis.bile...@gmail.com wrote: No, it's not that. Attached is the program that checks the error codes and also waits for a child using child watcher. Still fails.

Re: SIGCHLD not received

2012-05-30 Thread Marc Lehmann
On Wed, May 30, 2012 at 02:55:52PM +0400, Denis Bilenko denis.bile...@gmail.com wrote: Yes, it seems that waitpid() somehow masks or avoids the bug. If I apply this small patch to your program it fails - why? The test program still forks with an existing loop, and when I run it after the patch