This is the mail archive of the
mailing list for the glibc project.
Re: [RFC][BZ #14627] Make linux close errno to EINPROGRESS when interrupted in signal.
- From: Russ Allbery <eagle at eyrie dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: Rich Felker <dalias at aerifal dot cx>, David Miller <davem at davemloft dot net>, <libc-alpha at sourceware dot org>
- Date: Thu, 05 Dec 2013 18:05:13 -0800
- Subject: Re: [RFC][BZ #14627] Make linux close errno to EINPROGRESS when interrupted in signal.
- Authentication-results: sourceware.org; auth=none
- References: <20131205 dot 155009 dot 707968344039994800 dot davem at davemloft dot net> <87ob4vggn3 dot fsf at windlord dot stanford dot edu> <20131205223223 dot GQ24286 at brightrain dot aerifal dot cx> <20131205 dot 193739 dot 882517176297322058 dot davem at davemloft dot net> <20131206005337 dot GU24286 at brightrain dot aerifal dot cx> <Pine dot LNX dot 4 dot 64 dot 1312060148170 dot 16480 at digraph dot polyomino dot org dot uk>
"Joseph S. Myers" <firstname.lastname@example.org> writes:
> That should be about fclose errors (i.e. if a write syscall failed, with
> stdout redirected) rather than errors from the close syscall (although
> of course if the close syscall failed that would be passed though to
Which may be another argument in favor of having close return 0 for the
EINPROGRESS case, since having fclose fail with EINPROGRESS because it's
passing through the error is quite likely to be misinterpreted by the
application as a failure to flush output.
Russ Allbery (email@example.com) <http://www.eyrie.org/~eagle/>