Meridius has asked for the wisdom of the Perl Monks concerning the following question:
Code to issue TERM signal$SIG{TERM} = sub {$SIG{TERM}="IGNORE"; $term_sig = 1;}; print "\n $$ \n"; sleep(20); print "TERM signal ignored\n";
Please help me in understanding why the sleep breaks even though TERM is handled.kill -15 <pid>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Handling TERM signal
by ikegami (Patriarch) on Mar 09, 2007 at 06:05 UTC | |
|
Re: Handling TERM signal
by jesuashok (Curate) on Mar 09, 2007 at 10:19 UTC |