X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=src%2Flib%2Fempthread%2Fio.c;h=5d4d06c46f8b69e571453f7d8e292f2e24dc9e0d;hp=85cad537d714fbf61bc335dc96ec0f5169e2a73d;hb=6144a363d6a2047d195b74b530a1f7e8e4be1f7b;hpb=6564ff224000b809f9ad50bd7548923a92e53ddd diff --git a/src/lib/empthread/io.c b/src/lib/empthread/io.c index 85cad537d..5d4d06c46 100644 --- a/src/lib/empthread/io.c +++ b/src/lib/empthread/io.c @@ -121,7 +121,6 @@ io_input(struct iop *iop, int waitforinput) char buf[IO_BUFSIZE]; int cc; int res; - struct timeval timeout = iop->input_timeout; /* Not a read IOP */ if ((iop->flags & IO_READ) == 0) { @@ -135,7 +134,7 @@ io_input(struct iop *iop, int waitforinput) } /* Wait for the file to have input. */ if (waitforinput) { - res = empth_select(iop->fd, EMPTH_FD_READ, &timeout); + res = empth_select(iop->fd, EMPTH_FD_READ, &iop->input_timeout); if (res < 0) { iop->flags |= IO_ERROR; return -1;