in reply to Catching Signals in Perl
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Catching Signals in Perl
by sauoq (Abbot) on Sep 04, 2003 at 20:57 UTC | |
|
Re: Re: Catching Signals in Perl
by pileswasp (Monk) on Sep 10, 2003 at 13:24 UTC |