feat: add SIGTERM handling
Some checks reported errors
gitea-sync/ant-http/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
DanyLE 2024-03-13 22:48:10 +01:00
parent 58a7738afe
commit 4f91f99ca0

View File

@ -352,6 +352,7 @@ int main(int argc, char *argv[])
signal(SIGPIPE, SIG_IGN); signal(SIGPIPE, SIG_IGN);
signal(SIGABRT, SIG_IGN); signal(SIGABRT, SIG_IGN);
signal(SIGINT, stop_serve); signal(SIGINT, stop_serve);
signal(SIGTERM,stop_serve);
// start syslog // start syslog
if (g_server_config.debug_enable == 1) if (g_server_config.debug_enable == 1)
{ {