Answer the question
In order to leave comments, you need to log in
SIGINT on session termination?
Good afternoon
I use $SIG{'INT'} to catch the script stopping by ctrl+c
And you can somehow catch the script stopping for example:
1. when closing the window with putty
2. if it is killed by kill
Thank you
Answer the question
In order to leave comments, you need to log in
can be tracked.
use strict;
use warnings;
use sigtrap qw/die normal-signals/;
sleep(200);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question