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

This commit is contained in:
DanyLE 2024-03-13 22:48:10 +01:00
parent 58a7738afe
commit 4f91f99ca0
1 changed files with 1 additions and 0 deletions

View File

@ -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)
{