]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#7177: clarify the potential PIPE deadlock warnings
authorPhilip Jenvey <pjenvey@underboss.org>
Thu, 3 Dec 2009 02:25:54 +0000 (02:25 +0000)
committerPhilip Jenvey <pjenvey@underboss.org>
Thu, 3 Dec 2009 02:25:54 +0000 (02:25 +0000)
Doc/library/subprocess.rst

index 10747e6818359430e481aeae29badf21f9945125..b7cbdd261d0ddcd69270836b6b180327163b5674 100644 (file)
@@ -166,9 +166,10 @@ This module also defines two 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)
@@ -260,9 +261,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)