Explorar el Código

I don't remember exactly why we decided to pick the caller's value of
sa_restorer when SA_ONSTACK is set, but it seems to break LTP's
sigaltstack testcase. Some users have reported problems with
sigaltstack as well; hopefully this will fix it.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>

Carmelo Amoroso hace 17 años
padre
commit
d58c76005e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      libc/sysdeps/linux/avr32/sigaction.c

+ 1 - 1
libc/sysdeps/linux/avr32/sigaction.c

@@ -30,7 +30,7 @@ int __libc_sigaction(int signum, const struct sigaction *act,
                kact.k_sa_handler = act->sa_handler;
                memcpy(&kact.sa_mask, &act->sa_mask, sizeof (kact.sa_mask));
                kact.sa_flags = act->sa_flags;
-               if (kact.sa_flags & (SA_RESTORER | SA_ONSTACK))
+               if (kact.sa_flags & SA_RESTORER)
                        kact.sa_restorer = act->sa_restorer;
                else
                        kact.sa_restorer = __default_rt_sa_restorer;