Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: close() on opened pipe fails in forked child

by kennethk (Abbot)
on May 09, 2013 at 20:34 UTC ( [id://1032840]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $status = $pipe->close;
    die $! if $$ != $mainpid;
    
  2. or download this
    if ($$ == $mainpid) {
        $pipe->close or die $!;
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found