This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: Why doesn't _IO_do_write in fileops.c check for EINTR?


"George T. Talbot" <george@moberg.com> writes:

> Might a better sequence in (for example) _IO_do_write() look like this:
> 
>   do {
>     count = _IO_SYSWRITE (fp, data, to_do);
>   } while ((count == (_IO_size_t) -1) && (errno == EINTR));

No.  The write functions must be able to time out.  Setting alarm()
and try writing, returning after a while because the device does not
respond.  Leave libio as it is.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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