about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-10 04:51:05 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-10 04:51:05 +0000
commitc89f1b0ecf95546a53a055693d05cf29024806fb (patch)
tree9ee7f14539b29b955a57c5d1e260593b09d4a449
parent120a3e460b7e0b5fcb672cdd4547ee16b1038929 (diff)
downloadglibc-c89f1b0ecf95546a53a055693d05cf29024806fb.tar.gz
glibc-c89f1b0ecf95546a53a055693d05cf29024806fb.tar.xz
glibc-c89f1b0ecf95546a53a055693d05cf29024806fb.zip
(sigaction): Fix return value for the case SIG is one of the signals
the implementation uses.
-rw-r--r--linuxthreads/signals.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linuxthreads/signals.c b/linuxthreads/signals.c
index 47124cf48a..951abec899 100644
--- a/linuxthreads/signals.c
+++ b/linuxthreads/signals.c
@@ -132,7 +132,10 @@ int sigaction(int sig, const struct sigaction * act,
   if (sig == __pthread_sig_restart ||
       sig == __pthread_sig_cancel ||
       (sig == __pthread_sig_debug && __pthread_sig_debug > 0))
-    return EINVAL;
+    {
+      __set_errno (EINVAL);
+      return -1;
+    }
   if (act)
     {
       newact = *act;