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