]> granicus.if.org Git - python/commitdiff
note that fork and forkpty raise OSError on failure
authorSkip Montanaro <skip@pobox.com>
Sat, 15 Mar 2008 02:32:49 +0000 (02:32 +0000)
committerSkip Montanaro <skip@pobox.com>
Sat, 15 Mar 2008 02:32:49 +0000 (02:32 +0000)
Doc/library/os.rst

index f76cd977cc11343861cdd80f13336a8988512e59..98d0cf936deb3b52d3f0ebe9e2b9886dda5f82b1 100644 (file)
@@ -1631,7 +1631,8 @@ written in Python, such as a mail server's external command delivery program.
 .. function:: fork()
 
    Fork a child process.  Return ``0`` in the child and the child's process id in the
-   parent. Availability: Macintosh, Unix.
+   parent.  If an error occurs :exc:`OSError` is raised.
+   Availability: Macintosh, Unix.
 
 
 .. function:: forkpty()
@@ -1640,7 +1641,8 @@ written in Python, such as a mail server's external command delivery program.
    terminal. Return a pair of ``(pid, fd)``, where *pid* is ``0`` in the child, the
    new child's process id in the parent, and *fd* is the file descriptor of the
    master end of the pseudo-terminal.  For a more portable approach, use the
-   :mod:`pty` module. Availability: Macintosh, some flavors of Unix.
+   :mod:`pty` module.  If an error occurs :exc:`OSError` is raised.
+   Availability: Macintosh, some flavors of Unix.
 
 
 .. function:: kill(pid, sig)