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

linuxthreads/signals.c

index 47124cf48a91c08c50a86513ac9606fc83fbc4fd..951abec89973b3e04d08e7e93d2b8bcec80fd645 100644 (file)
@@ -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;