]> granicus.if.org Git - fcron/commit
Fixed occasional 1s slippage. Disable fcrondyn if we don't have gettimeofday() (or...
authorThibault Godouet <fcron@free.fr>
Thu, 9 Jun 2016 08:36:43 +0000 (09:36 +0100)
committerThibault Godouet <fcron@free.fr>
Thu, 9 Jun 2016 08:36:43 +0000 (09:36 +0100)
commit46dbfcb1bb011a703a0f7b9c1da83e756ca50855
treedd8e83af5b746a76af00d9f876088df55a4f6812
parentd18b2314f7684977cb8ec8c8de4eea07e0561e73
Fixed occasional 1s slippage. Disable fcrondyn if we don't have gettimeofday() (or it won't work anyway)
This was due to a race condition between when time_to_sleep is run and when we compute how long to sleep for, which could happen in the following second: if that happened we end up sleeping for 1s instead of not sleeping at all.  The fix was to replace time_to_sleep() by next_wake_time().
configure.in
database.c
database.h
doc/en/changes.sgml
fcron.c