From: Nishi Date: Thu, 19 Sep 2024 13:15:32 +0000 (+0000) Subject: fix select X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=8f2d13bddf2d4a09fe51b87e3d5ad87d69d73f52;p=tewi.git fix select git-svn-id: file:///raid/svn-personal/tewi/trunk@91 8739d7e6-ffea-ec47-b151-bdff447c6205 --- 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