This npending test bug was preventing any poll() errors from being
noticed and displayed. Possibly leading to some of the weird hanging
reports we have been unable to replicate.
* Note that this will only ever trigger when there are no log files
* and stdout/err/in are all closed too.
*/
- if (nfds == 0 && !npending) {
+ if (nfds == 0 && npending == 0) {
if (shutting_down)
return COMM_SHUTDOWN;
else
++statCounter.select_loops;
PROF_stop(comm_poll_normal);
- if (num >= 0 || npending >= 0)
+ if (num >= 0 || npending > 0)
break;
if (ignoreErrno(errno))