mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined define sigaction and __sigaction as wrappers around __libc_sigaction which rejects changing SIGCANCEL. * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
This commit is contained in:
@ -133,6 +133,25 @@ __libc_sigaction (sig, act, oact)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef SIGCANCEL
|
||||
weak_alias (__libc_sigaction, __sigaction)
|
||||
libc_hidden_weak (__sigaction)
|
||||
weak_alias (__libc_sigaction, sigaction)
|
||||
#else
|
||||
int
|
||||
__sigaction (sig, act, oact)
|
||||
int sig;
|
||||
const struct sigaction *act;
|
||||
struct sigaction *oact;
|
||||
{
|
||||
if (sig == SIGCANCEL)
|
||||
{
|
||||
__set_errno (EINVAL);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return __libc_sigaction (sig, act, oact);
|
||||
}
|
||||
libc_hidden_weak (__sigaction)
|
||||
weak_alias (__sigaction, sigaction)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user