diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2009-12-03 02:29:36 (GMT) |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2009-12-03 02:29:36 (GMT) |
commit | b089684ee0216306ad14259f171ffe2f9d42fe89 (patch) | |
tree | b8bbeca669bf644d23bd6cf21c7c0b36b47f4ff2 /Doc/library | |
parent | b7572f08f48c4b29c137c7b62f10be9436b6efa3 (diff) | |
download | cpython-b089684ee0216306ad14259f171ffe2f9d42fe89.zip cpython-b089684ee0216306ad14259f171ffe2f9d42fe89.tar.gz cpython-b089684ee0216306ad14259f171ffe2f9d42fe89.tar.bz2 |
Merged revisions 76640 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76640 | philip.jenvey | 2009-12-02 18:25:54 -0800 (Wed, 02 Dec 2009) | 2 lines
#7177: clarify the potential PIPE deadlock warnings
........
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/subprocess.rst | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 524161e..93ad19c 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -161,9 +161,10 @@ This module also defines four shortcut functions: .. warning:: - Like :meth:`Popen.wait`, this will deadlock if the child process - generates enough output to a stdout or stderr pipe such that it blocks - waiting for the OS pipe buffer to accept more data. + Like :meth:`Popen.wait`, this will deadlock when using + ``stdout=PIPE`` and/or ``stderr=PIPE`` and the child process + generates enough output to a pipe such that it blocks waiting + for the OS pipe buffer to accept more data. .. function:: check_call(*popenargs, **kwargs) @@ -286,9 +287,10 @@ Instances of the :class:`Popen` class have the following methods: .. warning:: - This will deadlock if the child process generates enough output to a - stdout or stderr pipe such that it blocks waiting for the OS pipe buffer - to accept more data. Use :meth:`communicate` to avoid that. + This will deadlock when using ``stdout=PIPE`` and/or + ``stderr=PIPE`` and the child process generates enough output to + a pipe such that it blocks waiting for the OS pipe buffer to + accept more data. Use :meth:`communicate` to avoid that. .. method:: Popen.communicate(input=None) |