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>
In reply to Handling TERM signal by Meridius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |