Skip to content

Commit

Permalink
added more signal handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
imperzer0 committed Dec 8, 2022
1 parent 072d714 commit 15b26f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ void server_initialize()
{
signal(SIGINT, signal_handler);
signal(SIGTERM, signal_handler);
signal(SIGABRT, signal_handler);
signal(SIGKILL, signal_handler);
signal(SIGTERM, signal_handler);
signal(SIGQUIT, signal_handler);
signal(SIGHUP, signal_handler);

mg_log_set(log_level);
mg_mgr_init(&manager);
Expand Down

0 comments on commit 15b26f6

Please sign in to comment.