From 328adc6fac0b04cf8488008a04f3c074c506fbb1 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 22 Apr 2009 23:20:29 +0200 Subject: [PATCH] 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. --- src/lib/empthread/io.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/lib/empthread/io.c b/src/lib/empthread/io.c index 5a50043b..ca9c3e25 100644 --- a/src/lib/empthread/io.c +++ b/src/lib/empthread/io.c @@ -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; }