summaryrefslogtreecommitdiff
path: root/linuxthreads/signals.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/signals.c')
-rw-r--r--linuxthreads/signals.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linuxthreads/signals.c b/linuxthreads/signals.c
index c044576065..452d860f92 100644
--- a/linuxthreads/signals.c
+++ b/linuxthreads/signals.c
@@ -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;