From 428bd7cc6b906c2b7dee50269ef8b25dd911d195 Mon Sep 17 00:00:00 2001 From: Toby Jaffey Date: Tue, 9 Dec 2025 22:20:11 +0000 Subject: [PATCH] Use signal, for linux --- host/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/host.c b/host/host.c index aa0fd50..2912057 100644 --- a/host/host.c +++ b/host/host.c @@ -27,7 +27,7 @@ void cleanexit(int sig) { void enableRawMode(void) { tcgetattr(STDIN_FILENO, &orig_termios); atexit(disableRawMode); - sigset(SIGINT, cleanexit); + signal(SIGINT, cleanexit); struct termios raw = orig_termios; raw.c_lflag &= ~(ECHO | ICANON | IEXTEN); raw.c_iflag &= ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON);