search for: log_got_error

Displaying 10 results from an estimated 10 matches for "log_got_error".

2007 Nov 04
1
Stop password errors from getting reported as transfer errors
On Sat, 2007-11-03 at 18:14 +0000, Wayne Davison committed: > Stop password errors from getting reported as transfer errors. IMO, setting log_got_error back to zero after the password handling is a hack. Here are two possible better approaches: 1. Decide where the real division between setup and transfer errors is (e.g., the beginning of client_run) and reset log_got_error there. 2. Introduce a new logcode FERROR_NO23 that is the same as FERROR...
2003 Jan 24
1
[patch] Still a problem with cleanup.c
.... -b Index: cleanup.c =================================================================== RCS file: /cvsroot/rsync/cleanup.c,v retrieving revision 1.15 diff -u -r1.15 cleanup.c --- cleanup.c 16 Jan 2003 20:09:31 -0000 1.15 +++ cleanup.c 24 Jan 2003 01:24:09 -0000 @@ -63,11 +63,11 @@ extern int log_got_error; static int inside_cleanup = 0; - if (inside_cleanup != 0) { + if (inside_cleanup > 10) { /* prevent the occasional infinite recursion */ return; } - inside_cleanup = 1; + inside_cleanup++; signal(SIGUSR1, SIG_IGN); signal(SIGUSR2, SIG_IGN); -------------- next part -----------...
2004 Jan 07
1
2.6.0 "file has vanished" fails to set exit code on local client
...lient (the io_error value is passed at the end of the file list, not during or after the file transfer phase). The old scheme used FERROR for the ""send_files failed to open" message. The new scheme uses FINFO for the "file has vanished:" message. The client receiver sets log_got_error when it receives a FERROR message from the sender. The old scheme used (io_error || log_got_error) to report a partial transfer (with no alternative of vanished files). The new scheme uses the IOERR_VANISHED flag to distinguish the two errors, and it will never be set in an rsync pull (nor will l...
2003 Jun 27
5
PATCH/RFC: Another stab at the Cygwin hang problem
...itpid(pid, &status, 0) != pid) { ! rprintf(FERROR,"cleanup in do_recv failed\n"); ! exit_cleanup(RERR_SOCKETIO); ! } return status; } *************** *** 867,878 **** exit_cleanup(RERR_SIGNAL); } - static RETSIGTYPE sigusr2_handler(int UNUSED(val)) { - extern int log_got_error; - if (log_got_error) _exit(RERR_PARTIAL); - _exit(0); - } - static RETSIGTYPE sigchld_handler(int UNUSED(val)) { #ifdef WNOHANG int cnt, status; --- 885,890 ---- *************** *** 964,970 **** orig_argv = argv; signal(SIGUSR1, sigusr1_handler); - signal(SIGUSR2, sigusr2_handl...
2001 Oct 18
1
rsync logging and permission problems
Dear rsync people, I have just started using rsync for backups. I have had a couple of issues. Note I'm trying to use rsync as user using ssh between two machines both running Debian GNU/Linux potato (2.2r3). The local machine is currently running 2.4.6-1 and the remote 2.3.2-1.2. 1) When I run rsync with the vv option, stuff scrolls of my screen faster than I can read it. I was wondering if
2002 Oct 09
2
rsync-2.5.5 memory eater problem
Hi, we ran into a little problem with rsync-2.5.5. Setup: you run rsync-2.5.5 as normal rsync over ssh (ie. not connecting to a rsync server). If you start such a rsync but interrupt the pulling process with Ctrl-C, the process on the other side may start to allocate all memory on the remote machine. As fa as we have analyzed the problem, the remote rsync process wants to issue a error message
2003 Jan 13
4
Please test rsync-2.5.6pre1
The first rsync-2.5.6 pre-release version is now available at: http://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre1.tar.gz ftp://rsync.samba.org/pub/rsync/preview/rsync-2.5.6pre1.tar.gz rsync://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre1.tar.gz There's also a corresponding '.sig' file that contains a gpg signature of the file; the public key is available on the
2002 Feb 18
1
fixes for bugs in error handling in rsync-2.5.2; and updates for rsync3.txt
...sion 1.11 diff -c -r1.11 cleanup.c *** cleanup.c 23 Mar 2001 01:26:04 -0000 1.11 --- cleanup.c 18 Feb 2002 00:39:34 -0000 *************** *** 40,51 **** --- 40,56 ---- */ void _exit_cleanup(int code, const char *file, 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, WN...
2004 Jan 17
1
--delete-sent-files (AKA --move-files)
...ead_loop(fd, line, 4); + successful_send(IVAL(line, 0)); + remaining = 0; break; case MSG_INFO: case MSG_ERROR: Index: main.c --- main.c 17 Jan 2004 05:04:04 -0000 1.181 +++ main.c 17 Jan 2004 05:04:54 -0000 @@ -41,6 +41,7 @@ extern int list_only; extern int local_server; extern int log_got_error; extern int 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_gene...
2007 Sep 22
0
rsync build on IA64 using icc
...remark #1419: external declaration in primary source file extern int io_error; ^ cleanup.c(29): remark #1419: external declaration in primary source file extern int keep_partial; ^ cleanup.c(30): remark #1419: external declaration in primary source file extern int log_got_error; ^ cleanup.c(31): remark #1419: external declaration in primary source file extern char *partial_dir; ^ cleanup.c(32): remark #1419: external declaration in primary source file extern char *logfile_name; ^ /opt/intel/compilo_9/l_cc_c_9.1.042/bin/icc...