ntpd: renew cur_time after script run, it can take a while
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 6 Jan 2010 12:05:08 +0000 (13:05 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 6 Jan 2010 12:05:08 +0000 (13:05 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ntpd.c

index 81474547edb88620d51da89215d2ff9a477aee92..d23b2c984428e4c4b6e9e603ece74b342253e012 100644 (file)
@@ -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;
                }