[RFC][BZ #14627] Make linux close errno to EINPROGRESS when interrupted in signal.

Christoph Hellwig hch@lst.de
Thu Dec 5 22:09:00 GMT 2013


On Thu, Dec 05, 2013 at 03:11:26PM -0500, Rich Felker wrote:
> If EINTR from close essentially doesn't show up in the wild on Linux,
> I think the proposed change in glibc to replace it with EINPROGRESS
> would essentially be just a safety against (dangerous!) double-close
> bugs in correct POSIX applications due to strange devices slipping an
> EINTR through. I'm still strongly in favor of adding it (or a
> replacement with 0/success).

I'll prepare a patch to catch it in-kernel and make sure it will never
get returned to userspace, even in case of a buggy driver.



More information about the Libc-alpha mailing list