about summary refs log tree commit diff
path: root/linuxthreads/signals.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/signals.c')
-rw-r--r--linuxthreads/signals.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linuxthreads/signals.c b/linuxthreads/signals.c
index df375e8e46..0c9bffd00b 100644
--- a/linuxthreads/signals.c
+++ b/linuxthreads/signals.c
@@ -139,10 +139,10 @@ int sigaction(int sig, const struct sigaction * act,
       if (act->sa_handler != SIG_IGN && act->sa_handler != SIG_DFL
 	  && sig > 0 && sig < NSIG)
 	{
-	  if (sig >= SIGRTMIN)
-	   newact.sa_handler = (__sighandler_t) pthread_sighandler_rt;
+	  if (act->sa_flags & SA_SIGINFO)
+	    newact.sa_handler = (__sighandler_t) pthread_sighandler_rt;
 	  else
-	   newact.sa_handler = (__sighandler_t) pthread_sighandler;
+	    newact.sa_handler = (__sighandler_t) pthread_sighandler;
 	}
       newactp = &newact;
     }