Clarify description of return value for WNOHANG.

This commit is contained in:
Michael Kerrisk 2008-01-31 10:30:12 +00:00
parent cfc621b5d9
commit 55ae3c86d1
1 changed files with 3 additions and 3 deletions

View File

@ -355,12 +355,12 @@ on error, \-1 is returned.
.BR waitpid ():
on success, returns the process ID of the child whose state has changed;
on error, \-1 is returned;
if
.B WNOHANG
was specified and no child(ren) specified by
was specified and one or more child(ren) specified by
.I pid
has yet changed state, then 0 is returned.
exist, but have not yet changed state, then 0 is returned.
On error, \-1 is returned.
.BR waitid ():
returns 0 on success or