From 4f91f99ca00d269a35f731a00d6ace31b59c8bb0 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Wed, 13 Mar 2024 22:48:10 +0100 Subject: [PATCH] feat: add SIGTERM handling --- httpd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/httpd.c b/httpd.c index dbd1471..f8fb80a 100644 --- a/httpd.c +++ b/httpd.c @@ -352,6 +352,7 @@ int main(int argc, char *argv[]) signal(SIGPIPE, SIG_IGN); signal(SIGABRT, SIG_IGN); signal(SIGINT, stop_serve); + signal(SIGTERM,stop_serve); // start syslog if (g_server_config.debug_enable == 1) {