Displaying 4 results from an estimated 4 matches for "io_start_multiplex_in".
2004 Jul 12
2
[PATCH] Batch-mode rewrite
...r line[MAXPATHLEN];
char *p;
+ int write_batch_temp;
+ write_batch_temp = write_batch; /* save incoming mode */
+ write_batch = 0; /* don't write RSYNCD protocol to file */
if (argc == 0 && !am_sender)
list_only = 1;
***************
*** 200,205 ****
--- 212,221 ----
io_start_multiplex_in(f_in);
}
+ if (write_batch_temp) /* fudge the protocol version */
+ write_int(batch_fd, remote_protocol);
+
+ write_batch = write_batch_temp; /* restore incoming mode */
return 0;
}
Index: compat.c
===================================================================
RCS file: /c...
2004 Sep 28
3
Truncated output from "rsync -e ssh ... 2>&1 | tee"
(Versions: OpenSSH_3.7.1p2, rsync version 2.6.2)
I've just encountered a situation where "rsync -v -n" appears to run
normally,
but reports many fewer file transfers than actually get done when you remove
the -n. (This is not one of the usual "-n" corner cases.)
It turns out that this only happens when you're doing a remote
rsync over ssh AND you redirect stderr into
2001 Nov 20
2
rsync server over SSH [includes code patches]
...continue;
}
***************
*** 102,122 ****
}
for (i=0;i<sargc;i++) {
! io_printf(fd,"%s\n", sargs[i]);
}
! io_printf(fd,"\n");
if (remote_version < 23) {
if (remote_version == 22 || (remote_version > 17 && !am_sender))
! io_start_multiplex_in(fd);
}
! return client_run(fd, fd, -1, argc, argv);
! }
! static int rsync_module(int fd, int i)
{
int argc=0;
char *argv[MAX_ARGS];
--- 129,149 ----
}
for (i=0;i<sargc;i++) {
! io_printf(f_out,"%s\n", sargs[i]);
}
! io_printf(f_out,"\n"...
2004 Jan 17
1
--delete-sent-files (AKA --move-files)
...nt module_id;
+extern int need_messages_from_generator;
extern int orig_umask;
extern int preserve_hard_links;
extern int protocol_version;
@@ -558,6 +559,8 @@ void start_server(int f_in, int f_out, i
io_start_multiplex_out(f_out);
if (am_sender) {
+ if (need_messages_from_generator)
+ io_start_multiplex_in(f_in);
if (!read_batch) {
recv_exclude_list(f_in);
if (cvs_exclude)
@@ -623,6 +626,9 @@ int client_run(int f_in, int f_out, pid_
io_flush(FULL_FLUSH);
exit_cleanup(status);
}
+
+ if (need_messages_from_generator)
+ io_start_multiplex_out(f_out);
if (argc == 0) {
list_only...