mirror of
https://github.com/lxsang/ant-http
synced 2024-12-25 00:08:21 +01:00
feat: add SIGTERM handling
Some checks reported errors
gitea-sync/ant-http/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
gitea-sync/ant-http/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
58a7738afe
commit
4f91f99ca0
1
httpd.c
1
httpd.c
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user