Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: How to close all open file descriptors after a fork?

by blazar (Canon)
on Jul 19, 2005 at 14:06 UTC ( #476103=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to close all open file descriptors after a fork?
in thread How to close all open file descriptors after a fork?

Well, in that case you may want to choose a way, to "spawn a background task" that will give you the pid of that task, and hopefully if you're under an OS that will let you access the relevant info for that process, you could check that.

For example under Linux you will be able, and may want to examine "/proc/$pid/fd/".


Comment on Re^3: How to close all open file descriptors after a fork?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-04-18 21:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (472 votes), past polls