summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/syssignal.c
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2000-01-28 14:55:50 +0000
committerroberto <roberto@FreeBSD.org>2000-01-28 14:55:50 +0000
commitb5b40f9e420899251189775800d9f74092925299 (patch)
tree98efdf1b74d6ecb7828bb502a0350116eeb2fd3c /contrib/ntp/libntp/syssignal.c
parentef64b99e8412f2273dd2e8b3291c2f78ffc4667f (diff)
downloadFreeBSD-src-b5b40f9e420899251189775800d9f74092925299.zip
FreeBSD-src-b5b40f9e420899251189775800d9f74092925299.tar.gz
Virgin import of ntpd 4.0.99b
Diffstat (limited to 'contrib/ntp/libntp/syssignal.c')
-rw-r--r--contrib/ntp/libntp/syssignal.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/ntp/libntp/syssignal.c b/contrib/ntp/libntp/syssignal.c
index 50c65b7..6ec4c4c 100644
--- a/contrib/ntp/libntp/syssignal.c
+++ b/contrib/ntp/libntp/syssignal.c
@@ -41,6 +41,16 @@ signal_no_reset(
vec.sa_flags = 0;
#endif
+#ifdef SA_RESTART
+/* Added for PPS clocks on Solaris 7 which get EINTR errors */
+# ifdef SIGPOLL
+ if (sig == SIGPOLL) vec.sa_flags = SA_RESTART;
+# endif
+# ifdef SIGIO
+ if (sig == SIGIO) vec.sa_flags = SA_RESTART;
+# endif
+#endif
+
while (1)
{
struct sigaction ovec;
OpenPOWER on IntegriCloud