]> git.ipfire.org Git - thirdparty/fcron.git/commit
Fixed occasional 1s slippage. Disable fcrondyn if we don't have gettimeofday() (or...
authorThibault Godouet <yo8192@users.noreply.github.com>
Thu, 9 Jun 2016 08:36:43 +0000 (09:36 +0100)
committerThibault Godouet <yo8192@users.noreply.github.com>
Thu, 9 Jun 2016 08:36:43 +0000 (09:36 +0100)
commitad4e0c38f09b7e34bf15443b3a00f7663fb7f24b
treedd8e83af5b746a76af00d9f876088df55a4f6812
parentf333e7d18dd0a5688cb0075a9ecf6ea6962cea65
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