Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: System call + signals = bad return code?

by bruceb3 (Pilgrim)
on Sep 28, 2007 at 23:11 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2023-01-27 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?