[issue14484] missing return in win32_kill?
Antoine Pitrou
report at bugs.python.org
Tue Apr 3 16:10:26 CEST 2012
New submission from Antoine Pitrou <pitrou at free.fr>:
Here is an excerpt from the os.kill implementation under Windows (in win32_kill(), posixmodule.c):
if (sig == CTRL_C_EVENT || sig == CTRL_BREAK_EVENT) {
if (GenerateConsoleCtrlEvent(sig, pid) == 0) {
err = GetLastError();
PyErr_SetFromWindowsErr(err);
}
else
Py_RETURN_NONE;
}
It seems there is a missing return in the first branch, when GenerateConsoleCtrlEvent() fails.
----------
components: Windows
messages: 157419
nosy: asvetlov, brian.curtin, pitrou, tim.golden
priority: normal
severity: normal
status: open
title: missing return in win32_kill?
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14484>
_______________________________________
More information about the Python-bugs-list
mailing list