[issue42962] Windows: SystemError during os.kill(..., signal.CTRL_C_EVENT)

William Schwartz report at bugs.python.org
Tue Jan 19 11:53:41 EST 2021


William Schwartz <wkschwartz at gmail.com> added the comment:

> Fixing the SystemError should be simple. Just clear an existing error if TerminateProcess() succeeds.

Should there be a `return NULL;` between these two lines? https://github.com/python/cpython/blob/e485be5b6bd5fde97d78f09e2e4cca7f363763c3/Modules/posixmodule.c#L7854-L7855

I'm not the best person to work on a patch for this.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42962>
_______________________________________


More information about the Python-bugs-list mailing list