[git commit master] ntpd: renew cur_time after script run, it can take a while
Denys Vlasenko
vda.linux at googlemail.com
Wed Jan 6 12:05:08 UTC 2010
commit: http://git.busybox.net/busybox/commit/?id=06667f21d6d28bf3acbc12474cf52c9bc20c884b
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/ntpd.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 8147454..d23b2c9 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -1902,6 +1902,7 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv)
) {
/* Useful for updating battery-backed RTC and such */
run_script("periodic");
+ gettime1900d(); /* sets G.cur_time */
}
continue;
}
--
1.6.3.3
More information about the busybox-cvs
mailing list