Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Killing process group run with IPC::Open3

by ikegami (Patriarch)
on Feb 03, 2012 at 00:06 UTC ( [id://951562]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl test.pl 2 perl -e'system("sleep 4; echo My work is done")'
    timed out
    ...
    timed out
    sent kill to 1
    $?=15
    
  2. or download this
    eval{
         local $SIG{ALRM} = sub {die "alarm\n"};
    ...
         waitpid($cpid, 0);
         alarm 0;
    };
    
  3. or download this
    $ perl fixed.pl 2 perl -e'system("sleep 4; echo My work is done")'
    timed out
    sent kill to 1
    $?=15
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-23 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found