From 02fb7d0c8a9747b9503fb31237befad89dcafd30 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 19 Sep 2024 13:16:28 +0000 Subject: [PATCH] fix select git-svn-id: file:///raid/svn-personal/tewi/trunk@93 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 -- 2.43.0