diff options
Diffstat (limited to 'linuxthreads/signals.c')
-rw-r--r-- | linuxthreads/signals.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linuxthreads/signals.c b/linuxthreads/signals.c index df375e8..0c9bffd 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; } |