]> git.ipfire.org Git - thirdparty/chrony.git/commit
sched: fix main loop to allow timeout handlers modify fd set or quit
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Apr 2014 09:42:47 +0000 (11:42 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Apr 2014 09:47:43 +0000 (11:47 +0200)
commit5cb7e6c9c38ced168593c4e5dfe5418ba033132e
tree03ce9868d13b4fc51a3c525a7ccd7a478e5efcc8
parentff31702f7440f1998313b74eb2d345cd5e2fd075
sched: fix main loop to allow timeout handlers modify fd set or quit

With special reference update modes, the timeout handlers may add or
remove file descriptors from the read fd set, so it needs to be copied
for select() call after they are dispatched. Also, they can now request
quit, so the exit flag needs to be checked before select() to avoid
hanging.
sched.c