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] New: fread/fwrite does not handle EINTR correctly


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.

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