(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
|
||||
|
||||
|
||||
/* 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue