Commit b089684e authored by Philip Jenvey's avatar Philip Jenvey

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
........
parent b7572f08
...@@ -161,9 +161,10 @@ This module also defines four shortcut functions: ...@@ -161,9 +161,10 @@ This module also defines four shortcut functions:
.. warning:: .. warning::
Like :meth:`Popen.wait`, this will deadlock if the child process Like :meth:`Popen.wait`, this will deadlock when using
generates enough output to a stdout or stderr pipe such that it blocks ``stdout=PIPE`` and/or ``stderr=PIPE`` and the child process
waiting for the OS pipe buffer to accept more data. 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) .. function:: check_call(*popenargs, **kwargs)
...@@ -286,9 +287,10 @@ Instances of the :class:`Popen` class have the following methods: ...@@ -286,9 +287,10 @@ Instances of the :class:`Popen` class have the following methods:
.. warning:: .. warning::
This will deadlock if the child process generates enough output to a This will deadlock when using ``stdout=PIPE`` and/or
stdout or stderr pipe such that it blocks waiting for the OS pipe buffer ``stderr=PIPE`` and the child process generates enough output to
to accept more data. Use :meth:`communicate` to avoid that. 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) .. method:: Popen.communicate(input=None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment