File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ present, and ``getch()`` which gets one character without echoing it.
445445How do I emulate os.kill() in Windows?
446446--------------------------------------
447447
448- To terminate a process, you can use ctypes::
448+ Prior to Python 2.7 and 3.2, to terminate a process, you can use :mod: ` ctypes ` ::
449449
450450 import ctypes
451451
@@ -455,6 +455,11 @@ To terminate a process, you can use ctypes::
455455 handle = kernel32.OpenProcess(1, 0, pid)
456456 return (0 != kernel32.TerminateProcess(handle, 0))
457457
458+ In 2.7 and 3.2, :func: `os.kill ` is implemented similar to the above function,
459+ with the additional feature of being able to send CTRL+C and CTRL+BREAK
460+ to console subprocesses which are designed to handle those signals. See
461+ :func: `os.kill ` for further details.
462+
458463
459464Why does os.path.isdir() fail on NT shared directories?
460465-------------------------------------------------------
You can’t perform that action at this time.
0 commit comments