fixed a small memory leak when using -C
[rsync/rsync.git] / clientserver.c
index eaa61ad..955be24 100644 (file)
@@ -267,8 +267,10 @@ static int rsync_module(int fd, int i)
                free(request);
        }
 
+#if !TRIDGE
        /* don't allow the logs to be flooded too fast */
        if (verbose > 1) verbose = 1;
+#endif
 
        argc -= optind;
        argp = argv + optind;
@@ -390,6 +392,9 @@ int daemon_main(void)
                        close(i); 
                        open("/dev/null", O_RDWR);
                }
+
+               set_nonblocking(STDIN_FILENO);
+
                return start_daemon(STDIN_FILENO);
        }