andyford has asked for the wisdom of the Perl Monks concerning the following question:
my $sigset = POSIX::SigSet->new(); my $restart_action = POSIX::SigAction->new('restart',$sigset,POSIX::SA +_NODEFER()); my $end_action = POSIX::SigAction->new('end',$sigset,POSIX::SA_NODEFER +()); POSIX::sigaction(POSIX::SIGQUIT(), $end_action); POSIX::sigaction(POSIX::SIGHUP(), $restart_action); POSIX::sigaction(POSIX::SIGPIPE(), $restart_action); POSIX::sigaction(POSIX::SIGTERM(), $end_action); POSIX::sigaction(POSIX::SIGINT(), $restart_action); POSIX::sigaction(POSIX::SIGUSR1(), $end_action);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting signal handlers
by Hue-Bond (Priest) on May 09, 2006 at 20:55 UTC | |
by andyford (Curate) on May 09, 2006 at 21:17 UTC | |
by Hue-Bond (Priest) on May 09, 2006 at 21:48 UTC | |
by ruoso (Curate) on May 09, 2006 at 21:52 UTC | |
by dave_the_m (Monsignor) on May 09, 2006 at 22:01 UTC | |
by ruoso (Curate) on May 09, 2006 at 23:18 UTC | |
| |
|
Re: Setting signal handlers
by jesuashok (Curate) on May 10, 2006 at 05:52 UTC |