Raphael Quinet wrote: > Included below is a small test program that checks how the OS behaves > when a child process exits while the parent is blocking on waitpid() > and has a SIGCHLD handler installed (which also calls waitpid, and > thus could steal the status if the signal handler is called before > the first waitpid returns). NetBSD sends the signal first, then the waitpid(2) returns. I happen to think this is the way it should be :) Jaromir -- Jaromir Dolecek <jdolecek@xxxxxxxxxx> http://www.ics.muni.cz/~dolecek/ @@@@ Wanna a real operating system ? Go and get NetBSD, damn! @@@@