This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10353] Methods for deleting all file descriptors greater than given integer
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 1 Jul 2009 05:57:41 -0000
- Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer
- References: <20090630233109.10353.martinrb@google.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2009-07-01 05:57 -------
No, it's a horrible idea. The assumption that a program knows all the open file
descriptors is simply invalid. The runtime (all kinds of libraries) can at any
point in time create additional file descriptors and indiscriminately calls for
trouble. The correct way is to name the individual file descriptors the program
knows about and let the creator of the other file descriptors worry about the rest.
The reason nscd can do it the way it does it is simple: all the code used is
controlled by libc. But that's a special case.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10353
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.