fix select

git-svn-id: file:///raid/svn-personal/tewi/trunk@95 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
Nishi 2024-09-19 13:17:58 +00:00
parent 856d519aac
commit 563949c1a9
2 changed files with 4 additions and 3 deletions

View 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

View 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);
}