This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/21004] fread/fwrite does not handle EINTR correctly
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 29 Dec 2016 16:57:35 +0000
- Subject: [Bug stdio/21004] fread/fwrite does not handle EINTR correctly
- Auto-submitted: auto-generated
- References: <bug-21004-131@http.sourceware.org/bugzilla/>
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.