Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: perl SIGnal process

by betterworld (Deacon)
on Aug 08, 2013 at 12:00 UTC ( #1048555=note: print w/ replies, xml ) Need Help??


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


Comment on Re: perl SIGnal process
Download Code
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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1048555]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2015-07-30 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls