fix select
git-svn-id: file:///raid/svn-personal/tewi/trunk@95 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
parent
856d519aac
commit
563949c1a9
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user