summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libos.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-08-13 13:36:33 (GMT)
committerFred Drake <fdrake@acm.org>1999-08-13 13:36:33 (GMT)
commit31e5e37196260c58a57f780a688b27b25ccae1bb (patch)
tree1a2f18cf9309da68be8e335aed6e4aa92cb6bea0 /Doc/lib/libos.tex
parentaf5725104b68a051c1c7cd0c11e364aff5780026 (diff)
downloadcpython-31e5e37196260c58a57f780a688b27b25ccae1bb.zip
cpython-31e5e37196260c58a57f780a688b27b25ccae1bb.tar.gz
cpython-31e5e37196260c58a57f780a688b27b25ccae1bb.tar.bz2
Explain the possible range of values for the pid parameter to
waitpid().
Diffstat (limited to 'Doc/lib/libos.tex')
-rw-r--r--Doc/lib/libos.tex20
1 files changed, 14 insertions, 6 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index 6dd733d..3d8d444 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -745,12 +745,20 @@ Availability: \UNIX{}.
\end{funcdesc}
\begin{funcdesc}{waitpid}{pid, options}
-Wait for completion of a child process given by process id, and return
-a tuple containing its process id and exit status indication (encoded
-as for \function{wait()}). The semantics of the call are affected by
-the value of the integer \var{options}, which should be \code{0} for
-normal operation.
-Availability: \UNIX{}.
+Wait for completion of a child process given by process id \var{pid},
+and return a tuple containing its process id and exit status
+indication (encoded as for \function{wait()}). The semantics of the
+call are affected by the value of the integer \var{options}, which
+should be \code{0} for normal operation.
+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}
\begin{datadesc}{WNOHANG}