From: Aredridel Date: 2004-09-15T10:36:38+09:00 Subject: Re: closing all open file descriptors > all i can think now is > > 3.upto(65536){|fd| IO::new(fd).close rescue nil} > > which is incredibly expensive! That's how it's usually done in C, though often only to 256. If it's inefficient, a File.close_all(from) method might be nice as a C extension. Ari