Commit 36b03d47 authored by Fred Drake's avatar Fred Drake

Explain the possible range of values for the pid parameter to

waitpid().
parent bd11b048
...@@ -745,12 +745,20 @@ Availability: \UNIX{}. ...@@ -745,12 +745,20 @@ Availability: \UNIX{}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{waitpid}{pid, options} \begin{funcdesc}{waitpid}{pid, options}
Wait for completion of a child process given by process id, and return Wait for completion of a child process given by process id \var{pid},
a tuple containing its process id and exit status indication (encoded and return a tuple containing its process id and exit status
as for \function{wait()}). The semantics of the call are affected by indication (encoded as for \function{wait()}). The semantics of the
the value of the integer \var{options}, which should be \code{0} for call are affected by the value of the integer \var{options}, which
normal operation. should be \code{0} for normal operation.
Availability: \UNIX{}. Availability: \UNIX{}.
If \var{pid} is greater than \code{0}, \function{waitpid()} requests
status information for that specific process. If \var{pid} is
\code{0}, the request is for the status of any child in the process
group of the current process. If \var{pid} is \code{-1}, the request
pertains to any child of the current process. If \var{pid} is less
than \code{-1}, status is requested for any process in the process
group \code{-\var{pid}} (the absolute value of \var{pid}).
\end{funcdesc} \end{funcdesc}
\begin{datadesc}{WNOHANG} \begin{datadesc}{WNOHANG}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment