summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2008-03-15 02:32:49 +0000
committerSkip Montanaro <skip@pobox.com>2008-03-15 02:32:49 +0000
commit75e51680f1902d714a4f33efa3d857df9e7e59eb (patch)
treed40d420a36bf251f86fcbda7045670e68cdb0877
parent026778174298e652bd91ebe5a11db1bd3a3e0902 (diff)
downloadcpython-git-75e51680f1902d714a4f33efa3d857df9e7e59eb.tar.gz
note that fork and forkpty raise OSError on failure
-rw-r--r--Doc/library/os.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index f76cd977cc..98d0cf936d 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -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)