in reply to Re: How to close all open file descriptors after a fork?
in thread How to close all open file descriptors after a fork?
I prefer "lexical FHs" because they will automatically closed on scope exitNo they won't. Your array will still hold a copy and they all will be kept open.
These file handles are references, are they not? You could try weaken these references in the array, and they'll automatically go away as normal — leaving just an undef in place.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to close all open file descriptors after a fork?
by blazar (Canon) on Jul 19, 2005 at 14:50 UTC |