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 dynamic-link/14989] Implement double dlclose() detection as required by POSIX


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.

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