kern/108390: wait4() erroneously waits for all children when SIGCHLD is SIG_IGN

Alan Ferrency alan at pair.com
Thu Feb 1 16:50:23 UTC 2007


The following reply was made to PR kern/108390; it has been noted by GNATS.

From: Alan Ferrency <alan at pair.com>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: kern/108390: wait4() erroneously waits for all children when
 SIGCHLD is SIG_IGN
Date: Thu, 1 Feb 2007 11:42:17 -0500 (EST)

 I apologize:  This should read "ECHILD", errno 10.
 
 
 > I modified my test script to output the return value and errno of the
 > failing wait4() call, and it verifies that when waiting too long for the
 > short-running process, wait4() is returning with ENOCHLD (no child
 > processes) and not because it received notification of a child process
 > exiting.
 
 Alan


More information about the freebsd-bugs mailing list