On Fri, Jul 09, 2004 at 10:58:54AM +0100, Tim Bunce wrote: > perl5-porters, any thoughts on this? > > Any fix needs to be within the debugger. Making the debugger close > all handles that weren't open when the process started seems 'most > correct' as it would make the 'restarted' execution closer to the > original execution.
This policy would be a definite improvement over my "close all open filehandles, other than the standard ones and internal ones". The cost is that you would have to walk the fd table at debugger startup, but the debugger is probably pretty heavy already. Also, is there a clean, portable way to ask "is this fd open?"? Anyhow, a night's sleep and Tim's opinion convince me that this is clearly the right approach. Andrew
