From: Dave Hart Date: Mon, 28 Mar 2011 02:29:10 +0000 (+0000) Subject: Remove "signal_no_reset: signal 17 had flags 4000000" logging, as it X-Git-Tag: NTP_4_2_7P143~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fa40b297d461ab544ce233bc35fc8b51457443c;p=thirdparty%2Fntp.git Remove "signal_no_reset: signal 17 had flags 4000000" logging, as it indicates no problem and is interpreted as an error. Previously some bits had been ignored one-by-one, but Linux SA_RESTORER definition is unavailable to user headers. bk: 4d8ff276h88raPI7_OXJ00VCRmHuqA --- diff --git a/ChangeLog b/ChangeLog index c4c67c65b..4c9716bea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ * Remove kernel line discipline driver code for clk and chu, deprecate related LDISC_ flags, and remove associated ntpd code to decode the timestamps, remove clktest line discipline test program. +* Remove "signal_no_reset: signal 17 had flags 4000000" logging, as it + indicates no problem and is interpreted as an error. Previously some + bits had been ignored one-by-one, but Linux SA_RESTORER definition is + unavailable to user headers. (4.2.7p142) 2011/03/21 Released by Harlan Stenn * [Bug 1844] ntpd 4.2.7p131 NetBSD, --gc-sections links bad executable. * Fix "make distcheck" break in libevent/sample caused by typo. diff --git a/libntp/syssignal.c b/libntp/syssignal.c index ad5574c9c..447595194 100644 --- a/libntp/syssignal.c +++ b/libntp/syssignal.c @@ -5,9 +5,6 @@ #include #include #include -#ifdef HAVE_LINUX_SIGNAL_H -#include /* provides SA_RESTORER on Linux */ -#endif #include "ntp_syslog.h" #include "ntp_stdlib.h" @@ -20,27 +17,6 @@ # else # define Z_SA_RESTART 0 # endif -# ifdef SA_SIGINFO -# define Z_SA_SIGINFO SA_SIGINFO -# else -# define Z_SA_SIGINFO 0 -# endif -# ifdef SA_NOCLDSTOP -# define Z_SA_NOCLDSTOP SA_NOCLDSTOP -# else -# define Z_SA_NOCLDSTOP 0 -# endif -# ifdef SA_RESTORER -# define Z_SA_RESTORER SA_RESTORER -# else -# define Z_SA_RESTORER 0 -# endif - -# define IGNORED_SA_FLAGS (Z_SA_NOCLDSTOP | \ - Z_SA_RESTART | \ - Z_SA_RESTORER | \ - Z_SA_SIGINFO) - void signal_no_reset( @@ -52,10 +28,10 @@ signal_no_reset( struct sigaction vec; struct sigaction ovec; + ZERO(vec); vec.sa_handler = func; sigemptyset(&vec.sa_mask); - vec.sa_flags = 0; /* Added for PPS clocks on Solaris 7 which get EINTR errors */ # ifdef SIGPOLL if (SIGPOLL == sig) @@ -73,10 +49,6 @@ signal_no_reset( perror("sigaction"); exit(1); } - if (ovec.sa_flags & ~IGNORED_SA_FLAGS) - msyslog(LOG_DEBUG, - "signal_no_reset: signal %d had flags %x", - sig, ovec.sa_flags); } #elif HAVE_SIGVEC diff --git a/sntp/m4/ntp_libntp.m4 b/sntp/m4/ntp_libntp.m4 index 0ea398b10..7271b94bf 100644 --- a/sntp/m4/ntp_libntp.m4 +++ b/sntp/m4/ntp_libntp.m4 @@ -519,18 +519,6 @@ case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in [Can we drop root privileges?]) esac -dnl libntp wants to use sigaction() flag SA_RESTORER (to ignore it) but -dnl the public headers don't define it. On systems where's it's been -dnl seen, it's declared in /usr/include/asm/signal.h which is included -dnl by linux/signal.h -dnl case "$host" in -dnl *-*-linux*) -dnl AC_CHECK_HEADERS([linux/signal.h]) -dnl esac -dnl The above doesn't work due to "present but cannot be compiled" -- -dnl linux/signal.h is apparently a kernel header that conflicts with -dnl user headers. We may need to grep the SA_RESTORER definition out. - case "$host" in *-*-darwin*) AC_SEARCH_LIBS([res_9_init], [resolv])