[PATCH] Manual should discourage mixing TEMP_FAILURE_RETRY and close
Paul Eggert
eggert@cs.ucla.edu
Mon Dec 5 17:17:00 GMT 2016
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.
More information about the Libc-alpha
mailing list