From 60e089e7d8373d9c538fcd7e49f65d5e634e4562 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Mon, 26 Sep 2022 22:15:57 +0800 Subject: [PATCH] feat: receive SIGQUIT --- src/utils/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/process.c b/src/utils/process.c index 2b69232..7f2de14 100644 --- a/src/utils/process.c +++ b/src/utils/process.c @@ -91,6 +91,7 @@ void process_list_append(process *proc) { // add new process into process list void process_list_run() { // start process list signal(SIGINT, get_exit_signal); // catch Ctrl + C (2) + signal(SIGQUIT, get_exit_signal); // catch Ctrl + \ (3) signal(SIGTERM, get_exit_signal); // catch exit signal (15) signal(SIGCHLD, get_sub_exit); // callback when child process die for (process **proc = process_list; *proc != NULL; ++proc) {