in reply to Destructors when the program is stopped via a signal
I'm not too familiar with the mechanics of signals, but I think that
$SIG{INT} = sub { die "SIGINT\n" };
and
$SIG{INT} = sub { print STDERR "Exiting due to SIGINT\n"; exit(1) };
would cause Perl to exit while calling destructors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Destructors when the program is stopped via a signal
by weismat (Friar) on Mar 18, 2008 at 09:29 UTC | |
by ikegami (Patriarch) on Mar 18, 2008 at 12:55 UTC |