Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: System call + signals = bad return code?

by bruceb3 (Pilgrim)
on Sep 29, 2007 at 02:51 UTC ( [id://641660]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    $SIG{ALRM} = sub {
    ...
    alarm(2);
    my $rt = system("sleep 4");
    print "system returned $rt, \$? is $?\n";
    
  2. or download this
    Alarm triggered in 26346
    system returned 0, $? is 0
    

Log In?
Username:
Password:

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

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

    No recent polls found