diff --git a/packages/c/sshnpd/src/main.c b/packages/c/sshnpd/src/main.c index c0a7befaf..81eb86a62 100644 --- a/packages/c/sshnpd/src/main.c +++ b/packages/c/sshnpd/src/main.c @@ -80,13 +80,7 @@ static bool is_child_process = false; static volatile sig_atomic_t should_run = 1; static void exit_handler(int sig) { atlogger_log("exit_handler", ATLOGGER_LOGGING_LEVEL_WARN, "Received signal: %d\n"); - if (should_run == 1) { - atlogger_log("exit_handler", ATLOGGER_LOGGING_LEVEL_WARN, "Received SIGINT, attempting a safe exit\n"); - should_run = 0; - } else if (should_run == 0) { - atlogger_log("exit_handler", ATLOGGER_LOGGING_LEVEL_WARN, "Received SIGINT again, exiting forcefully\n"); - exit(1); - } + exit(1); } static void child_exit_handler(int sig) { atlogger_log("child_exit_handler", ATLOGGER_LOGGING_LEVEL_WARN, "Received signal: %d\n");