Displaying 1 result from an estimated 1 matches for "pipe_to_filt".
Did you mean:
pipe_to_file
2003 Nov 17
0
[PATCH] --source-filter && --dest-filter for rsync 2.5.6
...args[ac++] = "--size-only";
diff -ur rsync-2.5.6/pipe.c rsync-2.5.6-filtered/pipe.c
--- rsync-2.5.6/pipe.c 2002-04-08 09:39:56.000000000 +0200
+++ rsync-2.5.6-filtered/pipe.c 2003-11-16 13:20:34.000000000 +0100
@@ -146,3 +146,90 @@
}
+pid_t run_filter(char *command[], int out, int *pipe_to_filter)
+{
+ pid_t pid;
+ int pipefds[2];
+ extern int blocking_io;
+
+ if (verbose >= 2) {
+ print_child_argv(command);
+ }
+
+ if (pipe(pipefds) < 0) {
+ rprintf(FERROR, "pipe: %s\n", strerror(errno));
+ exit_cleanup(RERR_IPC);
+ }
+
+ pid = fork();
+ if (pid == -1) {
+ rprintf(FE...