Message240809
| Author |
jpe |
| Recipients |
BreamoreBoy, asvetlov, jpe, pitrou, r.david.murray, steve.dower, tim.golden, vstinner, zach.ware |
| Date |
2015年04月13日.23:40:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1428968453.69.0.563977545241.issue14484@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I think at a minimum, a return should be added in the cases that call GenerateConsoleCtrlEvent and it fails.
Here's a more radical proposal, though: deprecate kill() on Windows and add a function that calls GenerateConsoleCtrlEvent and another that calls TerminateProcess. The rationale is that the two do act quite a bit differently than kill does on non-Windows systems do and it's a bad idea to try to provide cross-platform functionality when it can't be done. kill() on non-Windows systems would be left alone. |
|