Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by bruceb3 (Pilgrim)
on Sep 29, 2007 at 02:51 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2023-02-06 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?