Don't mask out SA_RESTORER from sa_flags.
glibc doesn't do this, and we probably shouldn't either.
Bug: 16703540
Bug: 17436734
(cherry picked from commit afe58ad989)
Change-Id: Iada5d0ae814f438cb276f056b2b5e3675f0e3666
This commit is contained in:
@@ -69,10 +69,6 @@ int sigaction(int signal, const struct sigaction* bionic_new_action, struct siga
|
||||
bionic_old_action->sa_mask = kernel_old_action.sa_mask;
|
||||
#if defined(SA_RESTORER)
|
||||
bionic_old_action->sa_restorer = kernel_old_action.sa_restorer;
|
||||
|
||||
if (bionic_old_action->sa_restorer == &__rt_sigreturn) {
|
||||
bionic_old_action->sa_flags &= ~SA_RESTORER;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user