]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(sigaction): Fix return value for the case SIG is one of the signals the implementati...
authorUlrich Drepper <drepper@redhat.com>
Mon, 10 Apr 2000 04:50:02 +0000 (04:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 10 Apr 2000 04:50:02 +0000 (04:50 +0000)
linuxthreads/signals.c

index c0445760656bb82386875786dbe7a8661edbf606..452d860f92f45229ffb0d6870439dfc114aebe0a 100644 (file)
@@ -140,7 +140,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;