--- lbbs/src/common.c 2025/06/05 08:36:02 1.29 +++ lbbs/src/common.c 2025/06/17 01:24:21 1.31 @@ -21,6 +21,7 @@ #include "menu.h" #include #include +#include #include // File loader @@ -88,7 +89,12 @@ void sig_hup_handler(int i) void sig_term_handler(int i) { + struct sigaction act = {0}; + SYS_server_exit = 1; + + act.sa_handler = SIG_IGN; + sigaction(SIGTERM, &act, NULL); } void sig_chld_handler(int i)