summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-protocol.rst
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-09-14 20:32:07 (GMT)
committerCarol Willing <carolcode@willingconsulting.com>2018-09-14 20:32:07 (GMT)
commit3faaa8857a42a36383bb18425444e597fc876797 (patch)
tree109c2997624aba5ed64b619938a6ca8a7bf007c1 /Doc/library/asyncio-protocol.rst
parentad8a0004206ba7aec5a8a60fce413da718080db2 (diff)
downloadcpython-3faaa8857a42a36383bb18425444e597fc876797.zip
cpython-3faaa8857a42a36383bb18425444e597fc876797.tar.gz
cpython-3faaa8857a42a36383bb18425444e597fc876797.tar.bz2
bpo-33649: Refresh Tasks and Futures pages (#9314)
* bpo-33649: Refresh Tasks and Futures pages * Fixes * Fix markup
Diffstat (limited to 'Doc/library/asyncio-protocol.rst')
-rw-r--r--Doc/library/asyncio-protocol.rst18
1 files changed, 13 insertions, 5 deletions
diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst
index d7ecb25..e4aed64 100644
--- a/Doc/library/asyncio-protocol.rst
+++ b/Doc/library/asyncio-protocol.rst
@@ -1,6 +1,9 @@
.. currentmodule:: asyncio
+.. _asyncio-transports-protocols:
+
+
========================
Transports and Protocols
========================
@@ -393,11 +396,13 @@ Subprocess Transports
.. method:: SubprocessTransport.kill()
- Kill the subprocess, as in :meth:`subprocess.Popen.kill`.
+ Kill the subprocess.
On POSIX systems, the function sends SIGKILL to the subprocess.
On Windows, this method is an alias for :meth:`terminate`.
+ See also :meth:`subprocess.Popen.kill`.
+
.. method:: SubprocessTransport.send_signal(signal)
Send the *signal* number to the subprocess, as in
@@ -405,17 +410,20 @@ Subprocess Transports
.. method:: SubprocessTransport.terminate()
- Ask the subprocess to stop, as in :meth:`subprocess.Popen.terminate`.
+ Stop the subprocess.
On POSIX systems, this method sends SIGTERM to the subprocess.
On Windows, the Windows API function TerminateProcess() is called to
stop the subprocess.
+ See also :meth:`subprocess.Popen.terminate`.
+
.. method:: SubprocessTransport.close()
- Kill the subprocess by calling the :meth:`kill` method
- if the subprocess hasn't returned yet, and close transports of all
- pipes (*stdin*, *stdout* and *stderr*).
+ Kill the subprocess by calling the :meth:`kill` method.
+
+ If the subprocess hasn't returned yet, and close transports of
+ *stdin*, *stdout*, and *stderr* pipes.
.. _asyncio-protocol: