}
-int start_accept_loop(int port, int (*fn)(int ))
+void start_accept_loop(int port, int (*fn)(int ))
{
int s;
/* open an incoming socket */
s = open_socket_in(SOCK_STREAM, port);
if (s == -1)
- return(-1);
+ exit(1);
/* ready to listen */
if (listen(s, 5) == -1) {
close(s);
- return -1;
+ exit(1);
}
close(fd);
}
- return 0;
}