in reply to
How to close all open file descriptors after a fork?
Check out these two threads:
Close all open file descriptors
Counting open files?
Comment on
Re: How to close all open file descriptors after a fork?
In Section
Seekers of Perl Wisdom