From 8f2d13bddf2d4a09fe51b87e3d5ad87d69d73f52 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 19 Sep 2024 13:15:32 +0000 Subject: [PATCH] fix select git-svn-id: file:///raid/svn-personal/tewi/trunk@91 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Server/main.c b/Server/main.c index c81122b..268f0ae 100644 --- a/Server/main.c +++ b/Server/main.c @@ -75,6 +75,11 @@ void WINAPI servmain(DWORD argc, LPSTR* argv) { } #endif +void sig(int sign){ + printf("%d\n", sign); + exit(0); +} + int main(int argc, char** argv) { logfile = stderr; #ifdef SERVICE @@ -145,6 +150,8 @@ int startup(int argc, char** argv) { signal(SIGCHLD, SIG_IGN); signal(SIGPIPE, SIG_IGN); signal(SIGCONT, SIG_IGN); + int i; + for(i = 1; i < 32; i++) signal(i, sig); #else SetConsoleTitle(tw_server); #endif -- 2.43.0