summaryrefslogtreecommitdiffstats
path: root/contrib/bind/lib/isc/eventlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind/lib/isc/eventlib.c')
-rw-r--r--contrib/bind/lib/isc/eventlib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/bind/lib/isc/eventlib.c b/contrib/bind/lib/isc/eventlib.c
index 6cb227b..cea98ac 100644
--- a/contrib/bind/lib/isc/eventlib.c
+++ b/contrib/bind/lib/isc/eventlib.c
@@ -20,7 +20,7 @@
*/
#if !defined(LINT) && !defined(CODECENTER)
-static const char rcsid[] = "$Id: eventlib.c,v 1.44 1999/10/13 17:11:20 vixie Exp $";
+static const char rcsid[] = "$Id: eventlib.c,v 1.45 2000/02/04 07:25:39 vixie Exp $";
#endif
#include "port_before.h"
@@ -345,7 +345,8 @@ evGetNext(evContext opaqueCtx, evEvent *opaqueEv, int options) {
}
ERR(pselect_errno);
}
- if (x == 0 && (nextTimer && !timerPast) && (options & EV_POLL))
+ if (x == 0 && (nextTimer == NULL || !timerPast) &&
+ (options & EV_POLL))
ERR(EWOULDBLOCK);
ctx->fdCount = x;
#ifdef EVENTLIB_TIME_CHECKS
OpenPOWER on IntegriCloud