]> 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>
Sat, 9 May 2020 11:17:23 +0000 (12:17 +0100)
commitb5504868ca781e1e36716d3dc750cc97a8ff9f38
treedd8e83af5b746a76af00d9f876088df55a4f6812
parent851d8af7134ed4b74b98f33f483fa12aaeabe06d
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