Re: Bug in waitpid()

Matthias Urlichs (
Fri, 1 Nov 1996 10:10:31 +0100

In, article <>, writes:
> Since I have no access to the POSIX standards, I am not sure what the correct
> semantics are, but from books I get the impression that SIGCHLD means more
> something like "a child that still has to be waited for died" rather than
> "a child died".

AFAIK, that's somewhat undefined. Besides, how often you get a SIGCHLD is
also undefined, so the reaper should call wait4(...,WNOHANG) in a loop
until there are no more dead child processes.

As long as war is regarded as wicked, it will always have its
fascination.  When it is looked upon as vulgar, it will cease to be
                                                     -- Oscar Wilde
Matthias Urlichs         \  noris network GmbH  /  Xlink-POP Nürnberg 
Schleiermacherstraße 12   \   Linux+Internet   /   EMail:
90491 Nürnberg (Germany)   \    Consulting+Programming+Networking+etc'ing
   PGP: 1024/4F578875   1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE
       Click <A HREF="">here</A>.    42