Why doesn't _IO_do_write in fileops.c check for EINTR?
Ulrich Drepper
drepper@redhat.com
Thu Apr 20 08:33:00 GMT 2000
"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 `------------------------
More information about the Libstdc++
mailing list