From 1d6c0a132e7b1e788711dc4c3b502a27621347c4 Mon Sep 17 00:00:00 2001 From: Lurker00 Date: Tue, 10 Sep 2024 11:26:15 +0300 Subject: [PATCH] Handle SIGTERM --- proxy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy.c b/proxy.c index c20f753..d01e924 100644 --- a/proxy.c +++ b/proxy.c @@ -974,6 +974,7 @@ int run(struct sockaddr_ina *srv) uniperror("signal SIGPIPE!"); #endif signal(SIGINT, on_cancel); + signal(SIGTERM, on_cancel); int fd = listen_socket(srv); if (fd < 0) {