RE: How to close ALL open file descriptors

2001-08-24 Thread HOLLAND-MORITZ,MARCUS (A-hsgGermany,ex1)
--- This will close all existing file handles except for the 'standard' ones being ARGV, STDIN, STDOUT, STDERR, stdin, stdout and stderr. It simply searches the symbol table for file handles and, if they aren't the standard file handles, closes them. H

Re: How to close ALL open file descriptors

2001-08-24 Thread Troy Denkinger
On Thursday 23 August 2001 20:20, Gupta, Ashish wrote: > I open lots of file descriptors in a script. > At one point, I want to close all the opened file descriptors (except for > stdin, stdout, stderr). > Is there a way to close all the opened file descriptors without having a > list of the hand

How to close ALL open file descriptors

2001-08-23 Thread Gupta, Ashish
I open lots of file descriptors in a script. At one point, I want to close all the opened file descriptors (except for stdin, stdout, stderr). Is there a way to close all the opened file descriptors without having a list of the handles ? ***