Displaying 2 results from an estimated 2 matches for "logfile_close".
2008 Jan 30
2
[PATCH] Fix backwards comment about logging on a local run.
...x 12aa73d..101d4cb 100644
--- a/pipe.c
+++ b/pipe.c
@@ -150,7 +150,7 @@ pid_t local_child(int argc, char **argv, int *f_in, int *f_out,
child_main(argc, argv);
}
- /* Let the client side handle this. */
+ /* Let the server side handle this. */
if (logfile_name) {
logfile_name = NULL;
logfile_close();
--
1.5.4.rc3.15.g4bbc
2006 Feb 13
1
rsync SIGSEGV signal handler in Cygwin.
...p; WEXITSTATUS(status) == RERR_CRASH)
+ rprintf(FLOG,
+ "rsync error: (1) *** Child proccess has crashed. :-( ***\n");
}
#endif
}
@@ -1070,6 +1085,12 @@
}
#endif
+static RETSIGTYPE rsync_panic_handler2(UNUSED(int whatsig))
+{
+ log_exit(RERR_CRASH, "main.c", -1);
+ logfile_close();
+ _exit(RERR_CRASH);
+}
int main(int argc,char *argv[])
{
@@ -1085,6 +1106,11 @@
signal(SIGFPE, rsync_panic_handler);
signal(SIGABRT, rsync_panic_handler);
signal(SIGBUS, rsync_panic_handler);
+#else /* !def MAINTAINER_MODE */
+ signal(SIGSEGV, rsync_panic_handler2);
+ signal(SIGFPE, r...