This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/21004] New: fread/fwrite does not handle EINTR correctly
- From: "bernd.edlinger at hotmail dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 29 Dec 2016 16:45:02 +0000
- Subject: [Bug stdio/21004] New: fread/fwrite does not handle EINTR correctly
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21004
Bug ID: 21004
Summary: fread/fwrite does not handle EINTR correctly
Product: glibc
Version: 2.24
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: stdio
Assignee: unassigned at sourceware dot org
Reporter: bernd.edlinger at hotmail dot de
Target Milestone: ---
stdio FILE streams don't seen to work correctly when signals
without SA_RESTART are delivered, because EINTR is not handled
in fread, and ferror simply returns true,
but it is not quite defined if errno is valid or not
when ferror returns true.
I think EINTR should be handled differently than
other error codes: probably simply ignore and retry the
failed I/O, or at least not set _IO_ERR_SEEN ?
--
You are receiving this mail because:
You are on the CC list for the bug.