Message157419
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. |
|
Date |
User |
Action |
Args |
2012-04-03 14:10:26 | pitrou | set | recipients:
+ pitrou, tim.golden, brian.curtin, asvetlov |
2012-04-03 14:10:26 | pitrou | set | messageid: <1333462226.23.0.725280599354.issue14484@psf.upfronthosting.co.za> |
2012-04-03 14:10:25 | pitrou | link | issue14484 messages |
2012-04-03 14:10:25 | pitrou | create | |
|