This is the mail archive of the libc-alpha@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]

Re: [PATCH] Manual should discourage mixing TEMP_FAILURE_RETRY and close


On 12/05/2016 08:38 AM, Rich Felker wrote:
Glibc is
hopefully going to fix it on the userspace side; I have an open bug
for it

Ah, thanks for clarifying. I now see that I already worked around the problem in GNU Emacs but forgot about it afterwards. On platforms lacking posix_close, Emacs treats a close error with errno==EINTR as if the close had succeeded. Although this leaks a file descriptor on some non-Linux systems, the leak is unlikely and is better than closing a random victim.


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