(io_write): Use IO_NOWAIT rather than 0. No functional change.
This commit is contained in:
parent
6147446fc1
commit
124ce4a398
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue