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

Russ Allbery eagle@eyrie.org
Fri Dec 6 03:38:00 GMT 2013


"Joseph S. Myers" <joseph@codesourcery.com> 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
> fclose).

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 (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>



More information about the Libc-alpha mailing list