Re: SIGCHLD not received

2012-07-24 Thread Marc Lehmann
On Tue, Jul 24, 2012 at 12:06:34PM +0400, Denis Bilenko wrote: > Expected output: > > *. goes on infinitely That's what I seem to get, but that's to be expected from races, which is why I asked. > > Can you explain the mechanism or nature of that race condition? > > in loop_fork() you call H

Re: SIGCHLD not received

2012-07-24 Thread Denis Bilenko
On Mon, Jul 23, 2012 at 1:24 PM, Marc Lehmann wrote: > Hmm, it's been a long time - what exactly is the behaviour I am supposed to > see from the program without the sleep, and what behaviour do you get? Here's the program with sleep removed (no further changes necessary), just tested it against