don't have rt_sigprocmask save to the same sigact twice, remove sigact_old

This commit is contained in:
IoIxD 2026-01-21 20:45:16 -07:00
commit 134dda968d

View file

@ -32,8 +32,7 @@ void msh_linux_setup_signals() {
sigact.sa_restorer = signal_restorer;
sigact.sa_flags = SA_RESTORER | SA_RESTART;
SYSCALL(rt_sigprocmask, SIG_UNBLOCK, &sigact.sa_mask, &sigact.sa_mask,
sizeof(sigset_t));
SYSCALL(rt_sigprocmask, SIG_UNBLOCK, &sigact.sa_mask, 0, sizeof(sigset_t));
INIT_SIGNAL(SIGINT);
INIT_SIGNAL(SIGILL);