summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-04-19 02:23:57 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-04-19 02:23:57 (GMT)
commite74c8f2879159367eded0933c9f89b9315f07df8 (patch)
tree21c5c11b8af5ae63fe405f07603f6186730c2c18 /Doc/library
parentc873550737cf191a64ea81e9eb50ee7355c7aec7 (diff)
downloadcpython-e74c8f2879159367eded0933c9f89b9315f07df8.zip
cpython-e74c8f2879159367eded0933c9f89b9315f07df8.tar.gz
cpython-e74c8f2879159367eded0933c9f89b9315f07df8.tar.bz2
Added kill, terminate and send_signal to subprocess.Popen
The bits and pieces for the Windows side were already in place. The POSIX side is trivial (as usual) and uses os.kill().
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/subprocess.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 901ce4d..09dbbd1 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -208,6 +208,29 @@ Instances of the :class:`Popen` class have the following methods:
size is large or unlimited.
+.. method:: Popen.send_signal(signal)
+
+ Sends the signal *signal* to the child.
+
+ .. note::
+
+ On Windows only SIGTERM is supported so far. It's an alias for
+ *terminate*.
+
+
+.. method:: Popen.terminate()
+
+ Stop the child. On Posix OSs the method sends SIGTERM to the
+ child. On Windows the Win32 API function TerminateProcess is called
+ to stop the child.
+
+
+.. method:: Popen.kill()
+
+ Kills the child. On Posix OSs the function sends SIGKILL to the child.
+ On Windows *kill* is an alias for *terminate*.
+
+
The following attributes are also available:
.. attribute:: Popen.stdin