Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: fork, %SIG, END.

by Ven'Tatsu (Deacon)
on Aug 19, 2005 at 18:15 UTC ( #485251=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e 'my $ccc = 0; $SIG{INT} = sub { $ccc++; print "^C pressed $ccc
    + times\n"; exit 42 if $ccc >= 5 }; 1 while 1;'; echo $?
    
  2. or download this
    my $parentFlag;
    
    ...
            #end block after failed fork or exit before the fork?
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2022-10-02 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (13 votes). Check out past polls.

    Notices?