signal: Don't use custom restorer.

* lib/linux/signal.c (signal): Don't use custom restorer.
This commit is contained in:
Danny Milosavljevic 2019-07-04 03:36:19 +02:00 committed by Jan Nieuwenhuizen
parent 02fdead244
commit 3e6306a5ce
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -44,12 +44,12 @@ signal (int signum, sighandler_t action)
unsigned short itembitcount; unsigned short itembitcount;
setup_action.sa_handler = action; setup_action.sa_handler = action;
setup_action.sa_restorer = _restorer_for_siginfo; /*setup_action.sa_restorer = _restorer_for_siginfo;*/
bitindex = signum - 1; bitindex = signum - 1;
itembitcount = 8 * sizeof(setup_action.sa_mask.items[0]); itembitcount = 8 * sizeof(setup_action.sa_mask.items[0]);
setup_action.sa_mask.items[bitindex / itembitcount] = 1UL << (bitindex % itembitcount); setup_action.sa_mask.items[bitindex / itembitcount] = 1UL << (bitindex % itembitcount);
old.sa_handler = SIG_DFL; 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)); int r = _sys_call4 (SYS_rt_sigaction, signum, &setup_action, &old, sizeof (sigset_t));
if (r) if (r)
return 0; return 0;