fix omission that kept sa_restorer from being used
diff --git a/include/bits/signal.h b/include/bits/signal.h
index 2427f37..c0bb818 100644
--- a/include/bits/signal.h
+++ b/include/bits/signal.h
@@ -48,6 +48,7 @@
#define SA_RESTART 0x10000000
#define SA_NODEFER 0x40000000
#define SA_RESETHAND 0x80000000
+#define SA_RESTORER 0x04000000
#define SS_ONSTACK 1
#define SS_DISABLE 2
diff --git a/src/signal/sigaction.c b/src/signal/sigaction.c
index 4acd173..9a36226 100644
--- a/src/signal/sigaction.c
+++ b/src/signal/sigaction.c
@@ -20,7 +20,7 @@
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;