From 563949c1a94bcc3684203fb079ad34445abe239f Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 19 Sep 2024 13:17:58 +0000 Subject: [PATCH] fix select git-svn-id: file:///raid/svn-personal/tewi/trunk@95 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/main.c | 3 --- Server/server.c | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Server/main.c b/Server/main.c index 8402590..eac830b 100644 --- a/Server/main.c +++ b/Server/main.c @@ -144,9 +144,6 @@ int startup(int argc, char** argv) { #ifndef __MINGW32__ signal(SIGCHLD, SIG_IGN); signal(SIGPIPE, SIG_IGN); -#ifdef __HAIKU__ - signal(5, SIG_IGN); -#endif #else SetConsoleTitle(tw_server); #endif diff --git a/Server/server.c b/Server/server.c index a395104..cd7a2d5 100644 --- a/Server/server.c +++ b/Server/server.c @@ -831,7 +831,11 @@ void tw_server_loop(void) { int j; for(j = 0; j < sockcount; j++) close_socket(sockets[j]); tw_server_pass(sock, config.ports[i] & (1ULL << 32), config.ports[i], claddr); +#ifdef __HAIKU__ + while(1); +#else _exit(0); +#endif } else { close_socket(sock); } -- 2.43.0