in reply to perl script as a running process

Some time ago I read that 'kill -9 PID' is not trappable. It kills the process before it can properly die.

update: from perlipc:

Some signals can be neither trapped nor ignored, such as the KILL and STOP (but not the TSTP) signals.

Replies are listed 'Best First'.
Re: Re: perl script as a running process
by isotope (Deacon) on Jun 30, 2003 at 19:36 UTC
    Correct. Signal 9 is SIGKILL, which is not actually sent to the process; it tells the kernel to terminate it without remorse. If you're trying to catch INT, send INT (kill -2) or for TERM, -15.

    --isotope