Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Problem with signal handler

by ChOas (Curate)
on Nov 21, 2007 at 11:46 UTC ( #652107=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [...]
    my $pid = fork;
    my $dontDie = 2;
    [...]
    
  2. or download this
     $SIG{INT} = sub {
            die "This is the end" unless --$dontDie;
            warn "Sending sig INT to child PID $pid";
            kill 'INT' => $pid;
            };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2020-10-22 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (225 votes). Check out past polls.

    Notices?