Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: System call + signals = bad return code?

by bruceb3 (Pilgrim)
on Sep 28, 2007 at 23:11 UTC ( [id://641637]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
        print "return value from child is $pid and status was $status\n";
    }
    print "".localtime(),"\n";
    
  2. or download this
    Sat Sep 29 09:04:00 2007
    child is 26171
    Alarm triggered, making system call in 26170
    return value from child is -1 and status was -1
    Sat Sep 29 09:04:02 2007
    
  3. or download this
    
    #include <stdio.h>
    ...
        printf("return value from system %d\n", rt);
    
    }
    
  4. or download this
    in alarm_sig
    unlink failed: No such file or directory
    return value from system 0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-19 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found