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

Re^3: How to find all open STDERR and STDOUT dups?

by BrowserUk (Patriarch)
on Mar 31, 2009 at 22:30 UTC ( [id://754557]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to find all open STDERR and STDOUT dups?
in thread How to find all open STDERR and STDOUT dups?

I still need to figure out how to selectively close those handles that correspond to STDERR and STDOUT,

Would it not be sufficient to simple close all open files in your child?

use POSIX (); ... } else { ## child POSIX::close( $_ ) for 0 .. 255; ## Or higher if that's a possibil +ity ''' }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-25 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found