From 99c1b0ad613fa47657691395a28d726c69387185 Mon Sep 17 00:00:00 2001 From: Mathieu CARBONNEAUX OSUAGWU Date: Tue, 5 Nov 2024 02:04:22 +0100 Subject: [PATCH] try to fix SIGHUP not existing in windows in cgi-fcgi --- cgi-fcgi/cgi-fcgi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgi-fcgi/cgi-fcgi.c b/cgi-fcgi/cgi-fcgi.c index 7bf4731..b34ca18 100644 --- a/cgi-fcgi/cgi-fcgi.c +++ b/cgi-fcgi/cgi-fcgi.c @@ -793,7 +793,9 @@ int main(int argc, char **argv) setsid(); /* Register our signal handler */ +#ifndef _WIN32 signal(SIGHUP, handle_shutdown); +#endif signal(SIGINT, handle_shutdown); signal(SIGTERM, handle_shutdown);