summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-04-12 18:07:21 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-04-12 18:07:21 (GMT)
commit4e20ab24cf992528539550b0136d01684e2dd74b (patch)
treea6f8c151778f84e89464281820afd069f296b0a9
parent1a14d3d169a34293f416abe4a41e4141c4e07965 (diff)
downloadcpython-4e20ab24cf992528539550b0136d01684e2dd74b.zip
cpython-4e20ab24cf992528539550b0136d01684e2dd74b.tar.gz
cpython-4e20ab24cf992528539550b0136d01684e2dd74b.tar.bz2
Update the Windows FAQ's text about os.kill (#1220212).
-rw-r--r--Doc/faq/windows.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/faq/windows.rst b/Doc/faq/windows.rst
index 353c400..1336400 100644
--- a/Doc/faq/windows.rst
+++ b/Doc/faq/windows.rst
@@ -441,7 +441,7 @@ present, and ``getch()`` which gets one character without echoing it.
How do I emulate os.kill() in Windows?
--------------------------------------
-To terminate a process, you can use ctypes::
+Prior to Python 2.7 and 3.2, to terminate a process, you can use :mod:`ctypes`::
import ctypes
@@ -451,6 +451,11 @@ To terminate a process, you can use ctypes::
handle = kernel32.OpenProcess(1, 0, pid)
return (0 != kernel32.TerminateProcess(handle, 0))
+In 2.7 and 3.2, :func:`os.kill` is implemented similar to the above function,
+with the additional feature of being able to send CTRL+C and CTRL+BREAK
+to console subprocesses which are designed to handle those signals. See
+:func:`os.kill` for further details.
+
Why does os.path.isdir() fail on NT shared directories?
-------------------------------------------------------