summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-08-15 23:14:00 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-08-15 23:14:00 (GMT)
commit59de7f5733555d808a4788fbde9a8850b470204a (patch)
tree54bf1d0a411c83a8a5c2808a5b79429e52c368bc /Doc
parentb90a8be96f8b6725fd207c74cb6d3211bf9bd684 (diff)
downloadcpython-59de7f5733555d808a4788fbde9a8850b470204a.zip
cpython-59de7f5733555d808a4788fbde9a8850b470204a.tar.gz
cpython-59de7f5733555d808a4788fbde9a8850b470204a.tar.bz2
document that waitpid raises OSError
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index df32a43..dab2934 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1883,6 +1883,9 @@ written in Python, such as a mail server's external command delivery program.
``-1``, status is requested for any process in the process group ``-pid`` (the
absolute value of *pid*).
+ An :exc:`OSError` is raised with the value of errno when the syscall
+ returns -1.
+
On Windows: Wait for completion of a process given by process handle *pid*, and
return a tuple containing *pid*, and its exit status shifted left by 8 bits
(shifting makes cross-platform use of the function easier). A *pid* less than or