diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-04-12 18:10:10 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-04-12 18:10:10 (GMT) |
commit | f4ed2066fc8715f3e672231de4f1a8ac03528ef7 (patch) | |
tree | d95d55fdada9313352668e8146e59ff00b7b5c21 /Doc | |
parent | eb24d7498f3e34586fee24209f5630a58bb1a04b (diff) | |
download | cpython-f4ed2066fc8715f3e672231de4f1a8ac03528ef7.zip cpython-f4ed2066fc8715f3e672231de4f1a8ac03528ef7.tar.gz cpython-f4ed2066fc8715f3e672231de4f1a8ac03528ef7.tar.bz2 |
Merged revisions 80009 via svnmerge from
svn+ssh://pythondev@svn.python.org/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).
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/faq/windows.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/faq/windows.rst b/Doc/faq/windows.rst index 5a5b7ed..bfd03f7 100644 --- a/Doc/faq/windows.rst +++ b/Doc/faq/windows.rst @@ -445,7 +445,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 @@ -455,6 +455,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? ------------------------------------------------------- |