]> granicus.if.org Git - python/commitdiff
document that waitpid raises OSError
authorGregory P. Smith <greg@mad-scientist.com>
Fri, 15 Aug 2008 23:14:00 +0000 (23:14 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Fri, 15 Aug 2008 23:14:00 +0000 (23:14 +0000)
Doc/library/os.rst

index df32a43536f322630025418ea7a33239d792151d..dab29348a8465d931750989027b1ae6be8eccee2 100644 (file)
@@ -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