a couple of changes to where the nonblocking settings are called.
[rsync/rsync.git] / clientserver.c
index 3266da5..955be24 100644 (file)
@@ -392,6 +392,9 @@ int daemon_main(void)
                        close(i); 
                        open("/dev/null", O_RDWR);
                }
+
+               set_nonblocking(STDIN_FILENO);
+
                return start_daemon(STDIN_FILENO);
        }