Message335723
This is in for 3.8.
On earlier or unpatched Python versions: application owners have a workaround f they do not mind skipping a clean application shutdown (destructors) on posix platforms:
catch KeyboardInterrupt, reset SIGINT to SIG_DFL, kill(getpid(), SIGINT). If you somehow need the python destructor cleanup (never guaranteed, so unwise to _depend_ on it) you could do that in a C atexit handler.
On Windows the workaround is easier without altering clean shutdown, catch KeyboardInterrupt and sys.exit(0xC000013A - 2**32). |
|
Date |
User |
Action |
Args |
2019-02-16 21:08:03 | gregory.p.smith | set | recipients:
+ gregory.p.smith, mwh, loewis, foom, pitrou, vstinner, jwilk, rnk, petri.lehtinen, martin.panter, SamB, eryksun |
2019-02-16 21:08:03 | gregory.p.smith | set | messageid: <1550351283.49.0.963847848115.issue1054041@roundup.psfhosted.org> |
2019-02-16 21:08:03 | gregory.p.smith | link | issue1054041 messages |
2019-02-16 21:08:03 | gregory.p.smith | create | |
|