about summary refs log tree commit diff
path: root/src/signal
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal')
-rw-r--r--src/signal/sigaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signal/sigaction.c b/src/signal/sigaction.c
index 4acd1730..9a362262 100644
--- a/src/signal/sigaction.c
+++ b/src/signal/sigaction.c
@@ -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;