]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
gui.c: Increase numbers of color pairs not related to themes.
[paraslash.git] / command.c
index c1bbba9aef86d7fccc936d2230f591ce3eb734d4..ab948b09b129546da1d62a515059deb013e6f50d 100644 (file)
--- a/command.c
+++ b/command.c
@@ -698,6 +698,10 @@ int handle_connect(int fd, struct sockaddr_in *addr)
        signal(SIGHUP, SIG_DFL);
        signal(SIGUSR1, SIG_IGN);
 
+       /* we need a blocking fd here as recv() might return EAGAIN otherwise. */
+       ret = mark_fd_blocking(fd);
+       if (ret < 0)
+               goto err_out;
        challenge_nr = random();
        /* send Welcome message */
        ret = send_va_buffer(fd, "This is para_server, version "