From 76f6548529dee9a7bd5a872fed31c83d44f954ba Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 10 Apr 2000 04:50:02 +0000 Subject: [PATCH] (sigaction): Fix return value for the case SIG is one of the signals the implementation uses. --- linuxthreads/signals.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linuxthreads/signals.c b/linuxthreads/signals.c index c044576..452d860 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; -- 2.7.4