(io_write): Use IO_NOWAIT rather than 0. No functional change.

This commit is contained in:
Markus Armbruster 2005-06-25 17:24:13 +00:00
parent 6147446fc1
commit 124ce4a398

View file

@ -271,7 +271,6 @@ io_output(struct iop *iop, int waitforoutput)
} }
#endif #endif
/* If no bytes were written, something happened.. Like an EOF. */ /* If no bytes were written, something happened.. Like an EOF. */
#ifndef hpux #ifndef hpux
if (cc == 0) { if (cc == 0) {
@ -327,7 +326,7 @@ io_write(struct iop *iop, s_char *buf, int nbytes, int doWait)
} else { } else {
/* only try a write every BUFSIZE characters */ /* only try a write every BUFSIZE characters */
if (((len - nbytes) % iop->bufsize) < (len % iop->bufsize)) if (((len - nbytes) % iop->bufsize) < (len % iop->bufsize))
io_output(iop, 0); io_output(iop, IO_NOWAIT);
} }
} }
return nbytes; return nbytes;