mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 05:35:07 -05:00
nts: improve NTS-KE server/client code
Add more assertions and comments, refactor initialization of the helper, and make other changes to make the code more robust.
This commit is contained in:
14
sched.c
14
sched.c
@@ -490,20 +490,6 @@ SCH_RemoveTimeout(SCH_TimeoutID id)
|
||||
assert(0);
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
void
|
||||
SCH_Reset(void)
|
||||
{
|
||||
while (n_timer_queue_entries > 0)
|
||||
SCH_RemoveTimeout(timer_queue.next->id);
|
||||
|
||||
while (one_highest_fd > 0) {
|
||||
close(one_highest_fd - 1);
|
||||
SCH_RemoveFileHandler(one_highest_fd - 1);
|
||||
}
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
/* Try to dispatch any timeouts that have already gone by, and
|
||||
keep going until all are done. (The earlier ones may take so
|
||||
|
||||
Reference in New Issue
Block a user