This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][BZ #14627] Make linux close errno to EINPROGRESS when interrupted in signal.
- From: Christoph Hellwig <hch at lst dot de>
- To: Rich Felker <dalias at aerifal dot cx>
- Cc: Christoph Hellwig <hch at lst dot de>, Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>, libc-alpha at sourceware dot org
- Date: Thu, 5 Dec 2013 21:19:23 +0100
- Subject: Re: [RFC][BZ #14627] Make linux close errno to EINPROGRESS when interrupted in signal.
- Authentication-results: sourceware.org; auth=none
- References: <20131205171054 dot GA14905 at domone dot podge> <52A0B6B5 dot 1010605 at linux dot vnet dot ibm dot com> <20131205175749 dot GL24286 at brightrain dot aerifal dot cx> <20131205195802 dot GA19289 at lst dot de> <20131205201126 dot GO24286 at brightrain dot aerifal dot cx>
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.