aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-07 08:31:46 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-07 08:31:46 +0100
commit6959f6bc23abb9057c3ed4330dad1bc8f4a1dd7a (patch)
tree62eb6ad011ac1cb269e881c2b95c739ce8b948f6 /networking
parent5e3b14069e3fe25ec2595124e6e0103c7be4f813 (diff)
downloadbusybox-w32-6959f6bc23abb9057c3ed4330dad1bc8f4a1dd7a.tar.gz
busybox-w32-6959f6bc23abb9057c3ed4330dad1bc8f4a1dd7a.tar.bz2
busybox-w32-6959f6bc23abb9057c3ed4330dad1bc8f4a1dd7a.zip
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.c8
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)
709 * last_update_offset, last_update_recv_time, discipline_jitter 709 * last_update_offset, last_update_recv_time, discipline_jitter
710 */ 710 */
711 711
712 wait4pid(spawn(argv)); 712 /* Don't want to wait: it may run hwclock --systohc, and that
713 * may take some time (seconds): */
714 /*wait4pid(spawn(argv));*/
715 spawn(argv);
713 G.last_script_run = G.cur_time; 716 G.last_script_run = G.cur_time;
714 717
715 unsetenv("stratum"); 718 unsetenv("stratum");
@@ -1805,7 +1808,8 @@ static NOINLINE void ntp_init(char **argv)
1805 setpriority(PRIO_PROCESS, 0, -15); 1808 setpriority(PRIO_PROCESS, 0, -15);
1806 1809
1807 bb_signals((1 << SIGTERM) | (1 << SIGINT), record_signo); 1810 bb_signals((1 << SIGTERM) | (1 << SIGINT), record_signo);
1808 bb_signals((1 << SIGPIPE) | (1 << SIGHUP), SIG_IGN); 1811 /* Removed SIGHUP here: */
1812 bb_signals((1 << SIGPIPE) | (1 << SIGCHLD), SIG_IGN);
1809} 1813}
1810 1814
1811int ntpd_main(int argc UNUSED_PARAM, char **argv) MAIN_EXTERNALLY_VISIBLE; 1815int ntpd_main(int argc UNUSED_PARAM, char **argv) MAIN_EXTERNALLY_VISIBLE;