Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Variable Scope in a Signal Handler?

by Indomitus (Scribe)
on Nov 01, 2001 at 21:54 UTC ( [id://122611]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $rip_done = 0;
    
    $SIG{CHLD} = sub { $rip_done = 1;
                       while( waitpid(-1, WNOHANG) > 0) {}  };
    
  2. or download this
    if($rip_done == 1)
    {
      do some stuff
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-11-05 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    chatterbot is...






    Results (30 votes). Check out past polls.