(sigaction): Fix return value for the case SIG is one of the signals the implementation uses.

This commit is contained in:
Ulrich Drepper 2000-04-10 04:50:02 +00:00
parent ddf0c5360c
commit 76f6548529

View File

@ -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;