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:
Markus Armbruster 2009-04-22 23:20:29 +02:00
parent 3805548b3e
commit 328adc6fac

View file

@ -232,15 +232,7 @@ io_output(struct iop *iop, int waitforoutput)
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);
return cc;
}