This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/14989] Implement double dlclose() detection as required by POSIX
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 28 Apr 2017 16:30:37 +0000
- Subject: [Bug dynamic-link/14989] Implement double dlclose() detection as required by POSIX
- Auto-submitted: auto-generated
- References: <bug-14989-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=14989
--- Comment #11 from Rich Felker <bugdal at aerifal dot cx> ---
It's essentially never useful for the reason the EBADF error from close is
never useful: it can tell you whether the resource identifier was currently
valid at the time of the close call, but not whether it referred to what you
thought it did, or whether it acted on a resource owned by some other part of
the program (or internal to the implementation) that you didn't intend to act
on.
The only reason to implement this behavior at all is for strict standards
conformance.
--
You are receiving this mail because:
You are on the CC list for the bug.