mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 02:25:07 -05:00
Fix scheduler to allow stepping clock from timeout handler
This commit is contained in:
committed by
Miroslav Lichvar
parent
8a00758cf5
commit
27a9b0e7b1
2
sched.c
2
sched.c
@@ -440,7 +440,7 @@ dispatch_timeouts(struct timeval *now) {
|
|||||||
TimerQueueEntry *ptr;
|
TimerQueueEntry *ptr;
|
||||||
int n_done = 0;
|
int n_done = 0;
|
||||||
|
|
||||||
while ((n_timer_queue_entries > 0) &&
|
if ((n_timer_queue_entries > 0) &&
|
||||||
(UTI_CompareTimevals(now, &(timer_queue.next->tv)) >= 0)) {
|
(UTI_CompareTimevals(now, &(timer_queue.next->tv)) >= 0)) {
|
||||||
ptr = timer_queue.next;
|
ptr = timer_queue.next;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user