Commit 13bed46f authored by Jan Včelák's avatar Jan Včelák 🚀

server: terminate when SIGTERM is received twice

parent 6ade1a5b
......@@ -133,6 +133,9 @@ static void handle_signal(int signum)
break;
case SIGINT:
case SIGTERM:
if (sig_req_stop) {
abort();
}
sig_req_stop = true;
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment