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: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Rich Felker <dalias at aerifal dot cx>
- Cc: David Miller <davem at davemloft dot net>, <eagle at eyrie dot org>, <libc-alpha at sourceware dot org>
- Date: Fri, 6 Dec 2013 01:52:15 +0000
- 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>
On Thu, 5 Dec 2013, Rich Felker wrote:
> Most GNU programs using gnulib check for an error closing stdout
> before they exit and adjust their exit status accordingly. I doubt
> anything else checks.
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 fclose).
--
Joseph S. Myers
joseph@codesourcery.com