This is the mail archive of the glibc-bugs@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]

[Bug stdio/21004] fread/fwrite does not handle EINTR correctly


https://sourceware.org/bugzilla/show_bug.cgi?id=21004

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
POSIX specifies that fread sets errno on failure, so the EINTR case can at
least be detected.

Are you concerned about short reads which are not a multiple of the element
size?  Recovery from EINTR would be difficult under such circumstances.

We can't make fread simply ignore EINTR because too many things would break.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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