set previous sig action to tls

This commit is contained in:
Wenyong Huang 2022-07-06 22:24:16 +08:00
parent 80bd8357eb
commit 4a59a7283f

View File

@ -448,8 +448,8 @@ mask_signals(int how)
pthread_sigmask(how, &set, NULL); pthread_sigmask(how, &set, NULL);
} }
static struct sigaction prev_sig_act_SIGSEGV; static os_thread_local_attribute struct sigaction prev_sig_act_SIGSEGV;
static struct sigaction prev_sig_act_SIGBUS; static os_thread_local_attribute struct sigaction prev_sig_act_SIGBUS;
static void static void
signal_callback(int sig_num, siginfo_t *sig_info, void *sig_ucontext) signal_callback(int sig_num, siginfo_t *sig_info, void *sig_ucontext)