diff options
-rw-r--r-- | linuxthreads/signals.c | 5 |
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; |