good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Catching Signals in Perlby yosefm (Friar) |
on Sep 04, 2003 at 20:55 UTC ( [id://289025]=note: print w/replies, xml ) | Need Help?? |
like so:
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 Section
Seekers of Perl Wisdom
|
|