From: Denys Vlasenko Date: Wed, 6 Jan 2010 12:05:08 +0000 (+0100) Subject: ntpd: renew cur_time after script run, it can take a while X-Git-Tag: 1_16_0~91 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=06667f21d6d28bf3acbc12474cf52c9bc20c884b;p=oweals%2Fbusybox.git ntpd: renew cur_time after script run, it can take a while Signed-off-by: Denys Vlasenko --- 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) ) { /* Useful for updating battery-backed RTC and such */ run_script("periodic"); + gettime1900d(); /* sets G.cur_time */ } continue; }