Clean up bogus setting of IO_EOF in io_output()
Don't set IO_EOF when writev() returns zero. I don't think this could happen, but it's wrong anyway, because a short write should not stop future reads.
This commit is contained in:
parent
3805548b3e
commit
328adc6fac
1 changed files with 0 additions and 8 deletions
|
@ -232,15 +232,7 @@ io_output(struct iop *iop, int waitforoutput)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If no bytes were written, something happened.. Like an EOF. */
|
|
||||||
if (cc == 0) {
|
|
||||||
iop->flags |= IO_EOF;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Remove the number of written bytes from the queue. */
|
|
||||||
ioq_dequeue(iop->output, cc);
|
ioq_dequeue(iop->output, cc);
|
||||||
|
|
||||||
return cc;
|
return cc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue