]> git.ipfire.org Git - thirdparty/chrony.git/commit
sched: don't return currently used timeout ID
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 10 Nov 2015 13:41:19 +0000 (14:41 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 16 Nov 2015 09:25:33 +0000 (10:25 +0100)
commit38910424f28727e9c99dcf0430adb6545a53f474
tree88258ba514800ce97179d20823fea1bf2ce5a9d1
parent0076458e9d03365d667db6ef6c797cccc8d443a9
sched: don't return currently used timeout ID

To avoid problems in the very unlikely case where a timeout is so long
and new IDs are allocated so frequently that they would have a chance
to overflow and catch up with it, make sure before returning new ID that
it's currently not in use.
sched.c