Message157225
Terry, sorry.
That's definitely posix-specific bug. I'll make a patch assuming Windows works well with killing IDLE.
To be polite I'll describe used signal names shortly.
SIGKILL, SIGTERM, SIGINT and SIGQUIT are used to stop process.
— SIGKILL is mimic to Windows TerminateProcess in some way.
It cannot be overloaded by target process and unconditionally terminates one.
— SIGTERM is default signal for kill utility. Used to stop process by some program.
— SIGINT sent if user press Ctrl+C in terminal.
Overridden very often.
Python does it itself to translate this signal to KeyboardInterrupt exception.
— SIGQUIT bound to Ctrl+\ and used to stop program with memory dump.
The standard way to process it
(if need to, the most programs leaves that handler untouched) is:
close used resources and maybe write to stderr/logs some message.
Usually SIGQUIT sent to hang program to stop execution
if Ctrl+C doesn't help but potentially dangerous SIGKILL is not desirably
by risk of lacking important data or locking kernel objects. |
|
Date |
User |
Action |
Args |
2012-03-31 20:02:13 | asvetlov | set | recipients:
+ asvetlov, terry.reedy, roger.serwy |
2012-03-31 20:02:13 | asvetlov | set | messageid: <1333224133.51.0.883036758783.issue14440@psf.upfronthosting.co.za> |
2012-03-31 20:02:03 | asvetlov | link | issue14440 messages |
2012-03-31 20:02:03 | asvetlov | create | |
|