diff options
author | Jim Meyering <jim@meyering.net> | 2000-01-18 07:25:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-01-18 07:25:53 +0000 |
commit | 19e03725a5160847ec25e1ac559cedb86bf67205 (patch) | |
tree | 2acc169457d73321288138b2489871ebb7c7811f /lib/nanosleep.c | |
parent | cc93db838ba66c6c7610c25ccc3a7ad4b8bc7d13 (diff) | |
download | gnulib-19e03725a5160847ec25e1ac559cedb86bf67205.tar.gz |
(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).
Diffstat (limited to 'lib/nanosleep.c')
-rw-r--r-- | lib/nanosleep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nanosleep.c b/lib/nanosleep.c index 1f17c09cf5..0adad88002 100644 --- a/lib/nanosleep.c +++ b/lib/nanosleep.c @@ -61,7 +61,7 @@ int 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 @@ nanosleep (const struct timespec *requested_delay, /* 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; |