X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/b9f592fbf50b0dc9e3d1d33b8deb2bf9abad9ef6..bb6721dce6bac8ff2374609bf5f99ea7e6fe2c70:/pipe.c diff --git a/pipe.c b/pipe.c index 90c7679f..2225cc6d 100644 --- a/pipe.c +++ b/pipe.c @@ -25,7 +25,6 @@ extern int am_sender; extern int am_server; extern int blocking_io; extern int orig_umask; -extern int read_batch; extern int write_batch; extern int filesfrom_fd; @@ -121,7 +120,7 @@ pid_t local_child(int argc, char **argv, int *f_in, int *f_out, } /* For read-batch, don't even fork. */ - pid = read_batch ? getpid() : do_fork(); + pid = do_fork(); if (pid == -1) { rsyserr(FERROR, errno, "fork");