|
@@ -25,11 +25,6 @@
|
|
int
|
|
int
|
|
__libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
|
|
__libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
|
|
{
|
|
{
|
|
- if (unlikely (sig == SIGCANCEL || sig == SIGSETXID)) {
|
|
|
|
- __set_errno (EINVAL);
|
|
|
|
- return -1;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/* NB: kernel (as of 2.6.25) will return EINVAL
|
|
/* NB: kernel (as of 2.6.25) will return EINVAL
|
|
* if sizeof(act->sa_mask) does not match kernel's sizeof(sigset_t).
|
|
* if sizeof(act->sa_mask) does not match kernel's sizeof(sigset_t).
|
|
* Try to catch this problem at uclibc build time: */
|
|
* Try to catch this problem at uclibc build time: */
|
|
@@ -53,11 +48,6 @@ __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
|
|
int result;
|
|
int result;
|
|
struct old_kernel_sigaction kact, koact;
|
|
struct old_kernel_sigaction kact, koact;
|
|
|
|
|
|
- if (unlikely (sig == SIGCANCEL || sig == SIGSETXID)) {
|
|
|
|
- __set_errno (EINVAL);
|
|
|
|
- return -1;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (act) {
|
|
if (act) {
|
|
kact.k_sa_handler = act->sa_handler;
|
|
kact.k_sa_handler = act->sa_handler;
|
|
kact.sa_mask = act->sa_mask.__val[0];
|
|
kact.sa_mask = act->sa_mask.__val[0];
|