http://www.perlmonks.org?node_id=476104


in reply to How to close all open file descriptors after a fork?

Check out these two threads: