$SIG{TERM} = sub {$SIG{TERM}="IGNORE"; $term_sig = 1;}; print "\n $$ \n"; sleep(20); print "TERM signal ignored\n";