Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4ed206

Browse files
committed
Merged revisions 80009 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r80009 | brian.curtin | 2010-04-12 13:07:21 -0500 (Mon, 12 Apr 2010) | 2 lines Update the Windows FAQ's text about os.kill (#1220212). ........
1 parent eb24d74 commit f4ed206

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Doc/faq/windows.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ present, and ``getch()`` which gets one character without echoing it.
445445
How 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

459464
Why does os.path.isdir() fail on NT shared directories?
460465
-------------------------------------------------------

0 commit comments

Comments
 (0)