if (cleanup_pid && cleanup_pid == getpid()) {
char *pidf = lp_pid_file();
if (pidf && *pidf)
+--- orig/errcode.h 2005-12-16 23:48:43
++++ errcode.h 2005-12-16 23:50:02
+@@ -37,7 +37,6 @@
+ #define RERR_CRASHED 15 /* sibling crashed */
+ #define RERR_TERMINATED 16 /* sibling terminated abnormally */
+
+-#define RERR_SIGNAL1 19 /* status returned when sent SIGUSR1 */
+ #define RERR_SIGNAL 20 /* status returned when sent SIGINT, SIGTERM, SIGHUP */
+ #define RERR_WAITCHILD 21 /* some error returned by waitpid() */
+ #define RERR_MALLOC 22 /* error allocating core memory buffers */
--- orig/generator.c 2005-12-16 04:03:06
+++ generator.c 2005-12-08 23:17:08
@@ -65,7 +65,6 @@ extern OFF_T min_size;
- write_batch_monitor_out = -1;
- write_batch_monitor_in = -1;
-}
---- orig/log.c 2005-12-16 04:03:06
-+++ log.c 2005-12-16 04:04:49
+--- orig/log.c 2005-12-16 23:48:44
++++ log.c 2005-12-16 23:49:57
@@ -35,7 +35,6 @@ extern int am_sender;
extern int local_server;
extern int quiet;
extern int protocol_version;
extern int preserve_times;
extern int log_format_has_i;
-@@ -68,7 +67,7 @@ struct {
+@@ -68,7 +67,6 @@ struct {
{ RERR_IPC , "error in IPC code" },
{ RERR_CRASHED , "sibling process crashed" },
{ RERR_TERMINATED , "sibling process terminated abnormally" },
-- { RERR_SIGNAL , "received SIGINT, SIGTERM, SIGHUP, or SIGUSR1" },
-+ { RERR_SIGNAL , "received SIGINT, SIGTERM, or SIGHUP" },
+- { RERR_SIGNAL1 , "received SIGUSR1" },
+ { RERR_SIGNAL , "received SIGINT, SIGTERM, or SIGHUP" },
{ RERR_WAITCHILD , "waitpid() failed" },
{ RERR_MALLOC , "error allocating core memory buffers" },
- { RERR_PARTIAL , "some files could not be transferred" },
-@@ -205,8 +204,8 @@ void rwrite(enum logcode code, char *buf
+@@ -206,8 +204,8 @@ void rwrite(enum logcode code, char *buf
buf[len] = 0;
send_msg((enum msgcode)code, buf, len);
return;
}
---- orig/main.c 2005-12-15 07:55:39
-+++ main.c 2005-12-10 19:02:56
+--- orig/main.c 2005-12-16 23:48:44
++++ main.c 2005-12-16 23:50:33
@@ -30,7 +30,6 @@ extern int list_only;
extern int am_root;
extern int am_server;
-
-static RETSIGTYPE sigusr1_handler(UNUSED(int val))
-{
-- exit_cleanup(RERR_SIGNAL);
+- exit_cleanup(RERR_SIGNAL1);
-}
-
-static RETSIGTYPE sigusr2_handler(UNUSED(int val))
show_progress(last_match, buf->file_size);
sum_update(map_ptr(buf, last_match, len), len);
last_match = s->flength;
---- orig/options.c 2005-11-15 18:21:22
+--- orig/options.c 2005-12-16 23:48:44
+++ options.c 2005-12-08 23:17:09
@@ -69,7 +69,6 @@ int def_compress_level = Z_DEFAULT_COMPR
int am_root = 0;
int keep_partial = 0;
int safe_symlinks = 0;
int copy_unsafe_links = 0;
-@@ -1232,6 +1232,7 @@ int parse_arguments(int *argc, const cha
+@@ -1236,6 +1236,7 @@ int parse_arguments(int *argc, const cha
if ((do_progress || dry_run) && !verbose && !log_before_transfer
&& !am_server)
verbose = 1;