[New-bugs-announce] [issue14480] os.kill on Windows should accept zero as signal

Andrew Svetlov report at bugs.python.org
Tue Apr 3 09:23:14 CEST 2012


New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:

Starting from 3.2 Python supports os.kill for Windows.
It process signal.CTRL_C_EVENT and signal.CTRL_BREAK_EVENT, and kills pid for all other signals.

Posix allows to pass zero signal to check pid for existing.
It will be nice to keep that behavior for Windows also.
The patch should be trivial: just don't call TerminateProcess in Modules/posixmodule.c:win32_kill if sig is zero.

----------
components: Library (Lib), Windows
keywords: easy
messages: 157398
nosy: asvetlov
priority: normal
severity: normal
status: open
title: os.kill on Windows should accept zero as signal
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14480>
_______________________________________


More information about the New-bugs-announce mailing list