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 | c829e00d7851683f2a900598d1952c0a823a15c5 (patch) | |
tree | abc9793b7b269ca02beb31e11d460447e694b534 /lib | |
parent | 95b4ba5e0d5cf2ca08497cd1e244b84a32418116 (diff) | |
download | coreutils-c829e00d7851683f2a900598d1952c0a823a15c5.tar.xz |
(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')
-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 1f17c09cf..0adad8800 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; |