adapt for windows
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Mon, 22 May 2023 13:39:14 +0000 (15:39 +0200)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Mon, 22 May 2023 13:39:14 +0000 (15:39 +0200)
server.c

index 4ead290052798a3d3aa746b3fcabefe4e0f6aa7e..039d4330e0e1da6ce9887e3c0fcaa15f19e0fd52 100644 (file)
--- a/server.c
+++ b/server.c
@@ -72,8 +72,9 @@ void init_network_context (void)
     assert (SOCKET_ERROR == -1);
 #endif
 
+#ifndef _WIN32 /* Posix */
     signal (SIGINT, &stop_server);
-    signal (SIGQUIT, &stop_server);
+#endif
     signal (SIGABRT, &stop_server);
     signal (SIGSEGV, &stop_server);
     signal (SIGTERM, &stop_server);