Message157419
| Author |
pitrou |
| Recipients |
asvetlov, brian.curtin, pitrou, tim.golden |
| Date |
2012年04月03日.14:10:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333462226.23.0.725280599354.issue14484@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|