From: Nishi Date: Thu, 19 Sep 2024 13:16:28 +0000 (+0000) Subject: fix select X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=02fb7d0c8a9747b9503fb31237befad89dcafd30;p=tewi.git fix select git-svn-id: file:///raid/svn-personal/tewi/trunk@93 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/main.c b/Server/main.c index 7ad9e1b..cbad1c9 100644 --- a/Server/main.c +++ b/Server/main.c @@ -75,11 +75,6 @@ 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 @@ -149,8 +144,7 @@ int startup(int argc, char** argv) { #ifndef __MINGW32__ signal(SIGCHLD, SIG_IGN); signal(SIGPIPE, SIG_IGN); - signal(SIGCONT, SIG_IGN); - for(i = 1; i < 32; i++) signal(i, sig); + signal(SIGTRAP, SIG_IGN); #else SetConsoleTitle(tw_server); #endif