]> granicus.if.org Git - python/commitdiff
Update the Windows FAQ's text about os.kill (#1220212).
authorBrian Curtin <brian.curtin@gmail.com>
Mon, 12 Apr 2010 18:07:21 +0000 (18:07 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Mon, 12 Apr 2010 18:07:21 +0000 (18:07 +0000)
Doc/faq/windows.rst

index 353c40055a195b55a47f986ec9aa024af2495237..1336400780e782fb22eab0df08493517fa33c9cd 100644 (file)
@@ -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?
 -------------------------------------------------------