local $SIG{HUP} = \&hup_handler;
Now, hup_handler will be called any time sighup is recieved.
update: Hmm... race condition... and I lost...
Update: Ok, sauoq, I fixed it like two seconds after my first post, but thanks.
In reply to Re: Catching Signals in Perl
by yosefm
in thread Catching Signals in Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |