diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-06 13:05:08 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-06 13:05:08 +0100 |
commit | 06667f21d6d28bf3acbc12474cf52c9bc20c884b (patch) | |
tree | 28b9d471b66dafe3cff1745a9d76c083300ef785 /networking/ntpd.c | |
parent | ede737b7cfb2d86965ebde07004ede3d8c3f1ab8 (diff) | |
download | busybox-w32-06667f21d6d28bf3acbc12474cf52c9bc20c884b.tar.gz busybox-w32-06667f21d6d28bf3acbc12474cf52c9bc20c884b.tar.bz2 busybox-w32-06667f21d6d28bf3acbc12474cf52c9bc20c884b.zip |
ntpd: renew cur_time after script run, it can take a while
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ntpd.c')
-rw-r--r-- | networking/ntpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index 81474547e..d23b2c984 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -1902,6 +1902,7 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv) | |||
1902 | ) { | 1902 | ) { |
1903 | /* Useful for updating battery-backed RTC and such */ | 1903 | /* Useful for updating battery-backed RTC and such */ |
1904 | run_script("periodic"); | 1904 | run_script("periodic"); |
1905 | gettime1900d(); /* sets G.cur_time */ | ||
1905 | } | 1906 | } |
1906 | continue; | 1907 | continue; |
1907 | } | 1908 | } |