Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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/".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://476103]
help
Chatterbox?
[Corion]: Whooops - I misread and miuxed Ubuntu and the ActiveState Perl question. Sorry!
[Corion]: Discipulus: Hurr - I'd use the command line, as always

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2016-12-07 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (125 votes). Check out past polls.