mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
(sigaction): Fix return value for the case SIG is one of the signals the implementation uses.
This commit is contained in:
parent
ddf0c5360c
commit
76f6548529
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user