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 (closefrom)
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 15 May 2019 11:25:26 +0000
- Subject: [Bug libc/10353] Methods for deleting all file descriptors greater than given integer (closefrom)
- Auto-submitted: auto-generated
- References: <bug-10353-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=10353
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |---
Assignee|drepper.fsp at gmail dot com |unassigned at sourceware dot org
Summary|Methods for deleting all |Methods for deleting all
|file descriptors greater |file descriptors greater
|than given integer |than given integer
| |(closefrom)
--- Comment #14 from Florian Weimer <fweimer at redhat dot com> ---
We should implement closefrom and related functions from Solaris. A
high-quality implementation (that cannot fail) will require kernel support.
I do not think there is a way to obtain the number of the highest file
descriptor currently in use because RLIMIT_NOFILE is not enforced for existing
descriptors. Opening /proc/self/fd may fail.
--
You are receiving this mail because:
You are on the CC list for the bug.