Notifications when process is killed

Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de
Tue Aug 2 13:40:22 CEST 2011


Am 02.08.2011 10:26 schrieb Thomas Rachel:
> Am 02.08.2011 09:30 schrieb AndDM:
>
>> The function works for SIGHUP and SIGINT, but it doesn't work for
>> SIGTERM. I've tried with simple killall and with -15 option.
>> Have you some ideas?
>
> SIGTERM cannot be caught - it kills the process the hard way.

Thank you for pointing out (via email) that this is wrong:

SIGTERM is a normal signal which can be caught in the normal way.
SIGKILL is (besides SIGSTOP) the one which cannot be caught, blocked or 
ignored.


Thomas



More information about the Python-list mailing list