This commit is contained in:
Michael Kerrisk 2007-12-25 16:16:06 +00:00
parent 863b571e68
commit a325cc6045
1 changed files with 13 additions and 8 deletions

View File

@ -136,7 +136,7 @@ value of
The value of
.I options
is an OR of zero or more of the following constants:
.TP
.TP 12
.B WNOHANG
return immediately if no child has exited.
.TP
@ -263,7 +263,7 @@ is ignored.
The child state changes to wait for are specified by ORing
one or more of the following flags in
.IR options :
.TP
.TP 12
.B WEXITED
Wait for children that have terminated.
.TP
@ -277,7 +277,7 @@ resumed by delivery of
.PP
The following flags may additionally be ORed in
.IR options :
.TP
.TP 12
.B WNOHANG
As for
.BR waitpid ().
@ -292,15 +292,19 @@ fills in the following fields of the
.I siginfo_t
structure pointed to by
.IR infop :
.IP \fIsi_pid\fP
.TP 12
\fIsi_pid\fP
The process ID of the child.
.IP \fIsi_uid\fP
.TP
\fIsi_uid\fP
The real user ID of the child.
(This field is not set on most other implementations.)
.IP \fIsi_signo\fP
.TP
\fIsi_signo\fP
Always set to
.BR SIGCHLD .
.IP \fIsi_status\fP
.TP
\fIsi_status\fP
Either the exit status of the child, as given to
.BR _exit (2)
(or
@ -309,7 +313,8 @@ or the signal that caused the child to terminate, stop, or continue.
The
.I si_code
field can be used to determine how to interpret this field.
.IP \fIsi_code\fP
.TP
\fIsi_code\fP
Set to one of:
.B CLD_EXITED
(child called