From 27a9b0e7b1b07d09f5cc9f6f23b46e4acbdca5b6 Mon Sep 17 00:00:00 2001 From: "Hattink, Tjalling (FINT)" Date: Tue, 26 Jan 2010 17:11:33 +0100 Subject: [PATCH] Fix scheduler to allow stepping clock from timeout handler --- sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched.c b/sched.c index 38f5e2e..6412f0a 100644 --- a/sched.c +++ b/sched.c @@ -440,7 +440,7 @@ dispatch_timeouts(struct timeval *now) { TimerQueueEntry *ptr; int n_done = 0; - while ((n_timer_queue_entries > 0) && + if ((n_timer_queue_entries > 0) && (UTI_CompareTimevals(now, &(timer_queue.next->tv)) >= 0)) { ptr = timer_queue.next;