diff options
-rw-r--r-- | Doc/faq/windows.rst | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Doc/faq/windows.rst b/Doc/faq/windows.rst index d063e7c..74aa52a 100644 --- a/Doc/faq/windows.rst +++ b/Doc/faq/windows.rst @@ -282,26 +282,6 @@ It defines a function ``kbhit()`` which checks whether a keyboard hit is present, and ``getch()`` which gets one character without echoing it. -How do I emulate os.kill() in Windows? --------------------------------------- - -Prior to Python 2.7 and 3.2, to terminate a process, you can use :mod:`ctypes`: - -.. code-block:: python - - import ctypes - - def kill(pid): - """kill function for Win32""" - kernel32 = ctypes.windll.kernel32 - 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 :kbd:`Ctrl+C` and :kbd:`Ctrl+Break` -to console subprocesses which are designed to handle those signals. See -:func:`os.kill` for further details. - How do I extract the downloaded documentation on Windows? --------------------------------------------------------- |