Displaying 10 results from an estimated 10 matches for "cleanup_child_pid".
2003 Mar 13
0
patch: interrupting ssh when it's asking for a password turns off echo in the shell
...for me. AFAICS this patch shouldn't cause any
trouble on other platforms in any way.
Paul Slootman
-------------- next part --------------
--- ../../orig/rsync-2.5.6/cleanup.c 2003-01-27 04:35:08.000000000 +0100
+++ ./cleanup.c 2003-03-12 14:31:04.000000000 +0100
@@ -104,6 +104,16 @@
if (cleanup_child_pid != -1) {
int status;
+ /* if the user hits ctrl-C while ssh is prompting for a password,
+ * then the kill_all() below may kill ssh before ssh has a
+ * chance to restore the tty settings (i.e. turn echo back on).
+ * By sleeping for a short time, ssh gets a bigger chance to
+ * do the...
2009 Jun 11
0
rsync occassionally issues the message "rsync error: unexplained error (code 255) at main.c(1506) [generator=3.0.4]"
...= 255) /* Preserve first specific error code
when recursing. */
code = exit_code;
/* If this is the exit at the end of the run, the server side
* should not attempt to output a message (see log.c). */
if (am_server && code == 0)
@@ -127,11 +127,11 @@
if (cleanup_child_pid != -1) {
int status;
int pid = wait_process(cleanup_child_pid, &status, WNOHANG);
if (pid == cleanup_child_pid) {
status = WEXITSTATUS(status);
- if (status > code)
+ if (status > code && status...
2003 Dec 16
3
default --rsh
On Mon, Dec 15, 2003 at 10:51:08AM -0800, Wayne Davison wrote:
> On Mon, Dec 15, 2003 at 10:03:28AM -0800, jw schultz wrote:
>
> > The one thing i really would have liked to have seen in a version bump
> > would have been changing the default remote shell to ssh instead of
> > rsh/remsh.
>
> I can see this being both a good thing (since I think it is a better
>
2002 Feb 18
1
fixes for bugs in error handling in rsync-2.5.2; and updates for rsync3.txt
...e, int line)
{
+ int ocode = code;
extern int keep_partial;
extern int log_got_error;
signal(SIGUSR1, SIG_IGN);
signal(SIGUSR2, SIG_IGN);
+ if (verbose > 3)
+ rprintf(FINFO,"_exit_cleanup(code=%d, file=%s, line=%d): entered\n",
+ code, file, line);
+
if (cleanup_child_pid != -1) {
int status;
if (waitpid(cleanup_child_pid, &status, WNOHANG) == cleanup_child_pid) {
***************
*** 80,85 ****
--- 85,94 ----
}
if (code) log_exit(code, file, line);
+
+ if (verbose > 2)
+ rprintf(FINFO,"_exit_cleanup(code=%d, file=%s, line=%d): about...
2006 Apr 26
2
--link-dest and file/dir transfer to remote rsync daemon
Hi NG,
I want to do incremental backups to a remote server running rsyncd
(because daemonless transfer via ssh often hangs!). In contrast to
transfer via ssh (without remote rsyncd) this doesn't seem possible, or
do I miss something?
Imagine I want to incrementally backup `mydir' to the backup space
`backup' on e remote server `alpha' running an rsync daemon. rsyncd on
2002 Aug 22
1
Applying the "Connection reset by peer"
Hi all,
we're suffering heavily from the "connection reset by peer" problem when
running Rsync on WinNT.
Great was our relief when seeing Randy's message in
http://www.mail-archive.com/rsync@lists.samba.org/msg01918.html
I immediately installed the full Cygwin to recompile Rsync, but since I'm
far from a C guru, I'm a bit puzzled with the last 2 lines in Randy's
2004 Jul 12
2
[PATCH] Batch-mode rewrite
...7,614 ----
if (am_sender) {
keep_dirlinks = 0; /* Must be disabled on the sender. */
+
+ /* TODO: I suspect this limitation can be removed. */
if (!read_batch) {
recv_exclude_list(f_in);
if (cvs_exclude)
***************
*** 609,623 ****
char *local_name = NULL;
cleanup_child_pid = pid;
! if (read_batch)
! flist = batch_flist;
set_nonblocking(f_in);
set_nonblocking(f_out);
setup_protocol(f_out,f_in);
! if (protocol_version >= 23)
io_start_multiplex_in(f_in);
if (am_sender) {
--- 633,658 ----
char *local_name = NULL;
cleanup_child_...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch?
Thanks for the reminder.
I've just committed Jos's rsync+ patch onto the
"branch_mbp_rsyncplus_merge" branch. If it works OK and nobody
screams I will move it across onto the main tree tomorrow or
Wednesday.
I see the patch doesn't add documentation about the new options to the
man page, so we should fix that in the future.
2002 Feb 07
1
Latest version of the batch mode cleanup patch
...xcludes();
@@ -527,19 +527,19 @@
*/
int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[])
{
- struct file_list *flist;
+ struct file_list *flist = NULL;
int status = 0, status2 = 0;
char *local_name = NULL;
extern int am_sender;
extern int remote_version;
extern pid_t cleanup_child_pid;
- extern int write_batch; /* dw */
- extern int read_batch; /* dw */
- extern struct file_list *batch_flist; /* dw */
+ extern int write_batch;
+ extern int read_batch;
+ extern struct file_list *batch_flist;
cleanup_child_pid = pid;
if (read_batch)
- flist = batch_flist; /* dw */
+...
2007 Sep 22
0
rsync build on IA64 using icc
...remark #1419: external declaration in primary source file
extern int batch_gen_fd;
^
main.c(62): remark #1419: external declaration in primary source file
extern int filesfrom_fd;
^
main.c(63): remark #1419: external declaration in primary source file
extern pid_t cleanup_child_pid;
^
main.c(64): remark #1419: external declaration in primary source file
extern struct stats stats;
^
main.c(65): remark #1419: external declaration in primary source file
extern char *filesfrom_host;
^
main.c(66): remark #1419: external de...