This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/10353] Methods for deleting all file descriptors greater than given integer (closefrom)


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]