From 3e6306a5cead038ce0b4c6115eb97f191a3b0ec8 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Thu, 4 Jul 2019 03:36:19 +0200 Subject: [PATCH] signal: Don't use custom restorer. * lib/linux/signal.c (signal): Don't use custom restorer. --- lib/linux/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linux/signal.c b/lib/linux/signal.c index d2f05b6f..7761173f 100644 --- a/lib/linux/signal.c +++ b/lib/linux/signal.c @@ -44,12 +44,12 @@ signal (int signum, sighandler_t action) unsigned short itembitcount; setup_action.sa_handler = action; - setup_action.sa_restorer = _restorer_for_siginfo; + /*setup_action.sa_restorer = _restorer_for_siginfo;*/ bitindex = signum - 1; itembitcount = 8 * sizeof(setup_action.sa_mask.items[0]); setup_action.sa_mask.items[bitindex / itembitcount] = 1UL << (bitindex % itembitcount); old.sa_handler = SIG_DFL; - setup_action.sa_flags = SA_RESTORER | SA_RESTART | SA_SIGINFO; + setup_action.sa_flags = SA_RESTART | SA_SIGINFO; int r = _sys_call4 (SYS_rt_sigaction, signum, &setup_action, &old, sizeof (sigset_t)); if (r) return 0;