changeset 2151:9aca0b7cb4cc

(nanosleep): Don't use SA_INTERRUPT to decide whether to call sigaction, as POSIX.1 doesn't require SA_INTERRUPT and some systems (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; it's been part of POSIX.1 since day 1 (in 1988).
author Jim Meyering <jim@meyering.net>
date Tue, 18 Jan 2000 07:25:53 +0000
parents 5dbe02cc3f4c
children b5c8c815912c
files lib/nanosleep.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/nanosleep.c
+++ b/lib/nanosleep.c
@@ -61,7 +61,7 @@
 nanosleep (const struct timespec *requested_delay,
 	   struct timespec *remaining_delay)
 {
-#ifdef SA_INTERRUPT
+#ifdef SA_NOCLDSTOP
   struct sigaction oldact, newact;
 #endif
 
@@ -70,7 +70,7 @@
   /* set up sig handler */
   if (first_call)
     {
-#ifdef SA_INTERRUPT
+#ifdef SA_NOCLDSTOP
       newact.sa_handler = sighandler;
       sigemptyset (&newact.sa_mask);
       newact.sa_flags = 0;