[Python-checkins] r61396 - python/trunk/Doc/library/os.rst

skip.montanaro python-checkins at python.org
Sat Mar 15 03:32:49 CET 2008


Author: skip.montanaro
Date: Sat Mar 15 03:32:49 2008
New Revision: 61396

Modified:
   python/trunk/Doc/library/os.rst
Log:
note that fork and forkpty raise OSError on failure

Modified: python/trunk/Doc/library/os.rst
==============================================================================
--- python/trunk/Doc/library/os.rst	(original)
+++ python/trunk/Doc/library/os.rst	Sat Mar 15 03:32:49 2008
@@ -1631,7 +1631,8 @@
 .. 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 @@
    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)


More information about the Python-checkins mailing list