Comment to task #5647 in hc-cron: hc-cron czasami odpala dwukrotnie
zadania
Flyspray - The bug killer!
btsadmin at pld-linux.org
Fri May 27 15:25:49 CEST 2005
Project: PLD 2.x (Ac)
Package: hc-cron
Summary: hc-cron czasami odpala dwukrotnie zadania
Commented by: Marcin Kaminski (maxiu)
Comment: Z dokumentacji glibca:
http://www.gnu.org/software/libc/manual/html_node/Sleeping.html#Sleeping
Resist the temptation to implement a sleep for a fixed amount of time
by using the return value of sleep, when nonzero, to call sleep again.
This will work with a certain amount of accuracy as long as signals
arrive infrequently. But each signal can cause the eventual wakeup time
to be off by an additional second or so. Suppose a few signals happen to
arrive in rapid succession by bad luck—there is no limit on how much
this could shorten or lengthen the wait.
Czyli ten kawałek kodu w vixie-cron i hc-cron jest po prostu błędny
i opiera się na błędnych założeniach.
PS. Na FreeBSD test daje 10 i 10, więc sleep nie zaokrągla
For more further see:
http://bugs.pld-linux.org/index.php?do=details&id=5647&area=comments#tabs}
------------------------------------------------------------------------
THIS IS AN AUTOMATICALLY GENERATED MESSAGE, DO NOT REPLY
More information about the pld-bugs
mailing list