summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-24 12:57:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-24 12:57:35 (GMT)
commitdda926e657ff4e12697eff23d66365d34593b3f6 (patch)
tree66c41f39d8536972246f1e737087bce466dcaec7
parent2411e7ef0315c2dfa217defcee0dab7a6511454a (diff)
parentde0e1d30d8a59edc49232ae13b2e2c243442dd32 (diff)
downloadcpython-dda926e657ff4e12697eff23d66365d34593b3f6.zip
cpython-dda926e657ff4e12697eff23d66365d34593b3f6.tar.gz
cpython-dda926e657ff4e12697eff23d66365d34593b3f6.tar.bz2
Merge heads
-rw-r--r--Doc/library/asyncio-subprocess.rst4
-rw-r--r--Doc/library/subprocess.rst6
2 files changed, 8 insertions, 2 deletions
diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst
index 5e6e657..f1f7bd9 100644
--- a/Doc/library/asyncio-subprocess.rst
+++ b/Doc/library/asyncio-subprocess.rst
@@ -8,14 +8,14 @@ Create a subprocess
.. function:: create_subprocess_shell(cmd, stdin=None, stdout=None, stderr=None, loop=None, limit=None, \*\*kwds)
- Run the shell command *cmd* given as a string. Return a :class:`Process`
+ Run the shell command *cmd* given as a string. Return a :class:`~asyncio.subprocess.Process`
instance.
This function returns a :ref:`coroutine object <coroutine>`.
.. function:: create_subprocess_exec(\*args, stdin=None, stdout=None, stderr=None, loop=None, limit=None, \*\*kwds)
- Create a subprocess. Return a :class:`Process` instance.
+ Create a subprocess. Return a :class:`~asyncio.subprocess.Process` instance.
This function returns a :ref:`coroutine object <coroutine>`.
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 1a9dd9d..f03c322 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -629,6 +629,12 @@ Instances of the :class:`Popen` class have the following methods:
:exc:`TimeoutExpired` exception. It is safe to catch this exception and
retry the wait.
+ .. note::
+
+ The function is implemented using a busy loop (non-blocking call and
+ short sleeps). Use the :mod:`asyncio` module for an asynchronous wait:
+ see :class:`asyncio.create_subprocess_exec`.
+
.. warning::
This will deadlock when using ``stdout=PIPE`` and/or