This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


"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/>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]