]> Git repositories of Nishi - tewi.git/commitdiff
fix select
authorNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 13:17:58 +0000 (13:17 +0000)
committerNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 13:17:58 +0000 (13:17 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@95 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/main.c
Server/server.c

index 84025900ce9649ba6a7cb65cc5d92273e4dccf64..eac830bd83ae0ea3de3b174b5c0311707561380d 100644 (file)
@@ -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
index a3951041582396ccd2f7bfa265032b661859b28f..cd7a2d5cbfca451c6bd02e00b6bbeed3e3ca0452 100644 (file)
@@ -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);
                                        }