fix omission that kept sa_restorer from being used

This commit is contained in:
Rich Felker committed 2011-02-13 16:46:33 -05:00
1 parent 0bcbb53dc4
commit e1d8d25a50
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -48,6 +48,7 @@ struct __siginfo
#define SA_RESTART 0x10000000
#define SA_NODEFER 0x40000000
#define SA_RESETHAND 0x80000000
#define SA_RESTORER 0x04000000
#define SS_ONSTACK 1
#define SS_DISABLE 2
+1 -1
View File
@@ -20,7 +20,7 @@ int __libc_sigaction(int sig, const struct sigaction *sa, struct sigaction *old)
long pksa=0, pkold=0;
if (sa) {
ksa.handler = sa->sa_handler;
ksa.flags = sa->sa_flags;
ksa.flags = sa->sa_flags | SA_RESTORER;
ksa.restorer = restorer;
ksa.mask = sa->sa_mask;
pksa = (long)&ksa;