http://www.perlmonks.org?node_id=1048555


in reply to perl SIGnal process

The operating system has its default ways to treat signals. Special application code is executed only if a signal handler is explicitly installed. If there is no handler, some default action will be taken, which should be documented. My system has informative man pages for "signal" in sections 7 and 2.

Setting a signal to its default behavior is documented in perlvar:

$SIG{'INT'} = 'DEFAULT'; # restore default action $SIG{'QUIT'} = 'IGNORE'; # ignore SIGQUIT

Replies are listed 'Best First'.
Re^2: perl SIGnal process
by chinaxing (Acolyte) on Aug 19, 2013 at 07:56 UTC
    thank you !

    but what's mean of undef , equals to 'DEFAULT' ? ;

    so does :
    $SIG{'INT'} = 'DEFAULT'
    equals to
    $SIG{'INT'} = undef
    ? very thanks your explaination :)