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 almut (Canon)
on Mar 31, 2009 at 21:20 UTC ( [id://754540]=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?

Both approaches are imperfect. But ultimately, I consider the info you can retrieve via lsof more useful than what you might find when digging around in the symbol table. The two main issues with the symbol table are:

  • the file descriptor number in question may not be the one you're looking for (see my other reply below)
  • the dup(2) may not have left any traces in Perl's symbol table at all (as I tried to point out above), in case the dup happened via some C-level code in an XS module.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-18 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found