use simpler signal interface.

This commit is contained in:
Kelvin Sherlock 2019-02-10 21:40:47 -05:00
parent 66fbd7f677
commit fdcb504d9c

View File

@ -915,7 +915,7 @@ int debug_shell(int code) {
}
}
static void do_sig_intr(int sig, siginfo_t *info, void *context) {
static void do_sig_intr(int sig) {
set_halt(4);
}
@ -929,8 +929,7 @@ void do_go() {
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_SIGINFO;
sa.sa_sigaction = do_sig_intr;
sa.sa_handler = do_sig_intr;
sigaction(SIGINT, &sa, NULL);
} else {