On Wed, 30 May 2007, Ulrich Drepper wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Linus Torvalds wrote:
> >     for (i = 0; i < NR_OPEN; i++)
> >             close(i);
> > 
> > to clean up all file descriptors before doing something new. And yes, I 
> > think it was bash that used to *literally* do something like that a long 
> > time ago.
> 
> Indeed.  It was not only bash, though, I fixed probably a dozen
> applications.  But even the new and better solution (readdir of
> /proc/self/fd) does not prevent the problem of closing descriptors the
> system might still need and the application doesn't know about.

Please, do not drop me out of the Cc list. If you have a valid point, you 
should be able to carry it forward regardless, no?



- Davide


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to