Hello!
Different OSes are going have slightly different signals. I found this for windows:
- ABRT2 -- This signal means that another process is trying to abort your process.
- BREAK2 -- This signal indicates that a Ctrl+Break key sequence was pressed under Windows.
- TERM2 -- This signal means that another process is trying to terminate your process.
- SEGV2 -- This signal indicates that a segment violation has taken place.
- FPE2 -- This signal catches floating point exceptions.
- ILL2 -- This signal indicates that an illegal instruction has been attempted.
- INT2 -- This signal indicates that a Ctrl+C key sequence was pressed under Windows.
sub kill_handler {
open(my $theend, ">", ABORTED");
close($theend);
}
$SIG{'ABRT2'} = 'kill_handler';
$SIG{'ILL2'} = 'kill_handler';
Kurt