diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-07 08:31:46 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-07 08:31:46 +0100 |
commit | 6959f6bc23abb9057c3ed4330dad1bc8f4a1dd7a (patch) | |
tree | 62eb6ad011ac1cb269e881c2b95c739ce8b948f6 /networking | |
parent | 5e3b14069e3fe25ec2595124e6e0103c7be4f813 (diff) |
hwclock: disable time diff code; ntpd -S script: do not wait for completion
function old new delta
rtcname 4 - -4
run_script 278 273 -5
hwclock_main 466 439 -27
read_rtc 86 38 -48
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-84) Total: -84 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ntpd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index d23b2c984..038f2bded 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -709,7 +709,10 @@ static void run_script(const char *action) * last_update_offset, last_update_recv_time, discipline_jitter */ - wait4pid(spawn(argv)); + /* Don't want to wait: it may run hwclock --systohc, and that + * may take some time (seconds): */ + /*wait4pid(spawn(argv));*/ + spawn(argv); G.last_script_run = G.cur_time; unsetenv("stratum"); @@ -1805,7 +1808,8 @@ static NOINLINE void ntp_init(char **argv) setpriority(PRIO_PROCESS, 0, -15); bb_signals((1 << SIGTERM) | (1 << SIGINT), record_signo); - bb_signals((1 << SIGPIPE) | (1 << SIGHUP), SIG_IGN); + /* Removed SIGHUP here: */ + bb_signals((1 << SIGPIPE) | (1 << SIGCHLD), SIG_IGN); } int ntpd_main(int argc UNUSED_PARAM, char **argv) MAIN_EXTERNALLY_VISIBLE; |