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