Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: fork process + SIG handlers

by BUU (Prior)
on Dec 04, 2004 at 05:01 UTC ( [id://412354]=note: print w/replies, xml ) Need Help??


in reply to fork process + SIG handlers

SIG{'HUP'} = $SIG{'INT'} = $SIG{'KILL'} = $SIG{'TERM'} = &sig_handler; This is wrong, it calls the subroutine sig_handler and assigns the result of that function call to the variables. You want either $SIG{FOO}='sig_handler'; or $SIG{FOO} = \&sig_handler;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found