Index: main/io.c =================================================================== --- main/io.c (revision 42839) +++ main/io.c (working copy) @@ -242,7 +242,7 @@ ioc->fds[x].events = 0; ioc->fds[x].revents = 0; ioc->needshrink = 1; - if (!ioc->current_ioc) + if (ioc->current_ioc == -1) io_shrink(ioc); return 0; }