Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

better patch for rsync

From: Marc Espie <espie(at)nerim.net>
Date: Sun Jan 12 2003 - 11:25:35 EST


Turns out that removing all recursive calls will lead some cases into trouble, where rsync is depending upon several exit_cleanups to appear in quick succession.

Please test.

$OpenBSD: patch-cleanup_c,v 1.1 2002/12/14 18:06:58 espie Exp $

--- cleanup.c.orig	Wed Mar 27 02:03:13 2002

+++ cleanup.c Sun Jan 12 17:15:53 2003
@@ -43,6 +43,13 @@ void _exit_cleanup(int code, const char int ocode = code; extern int keep_partial; extern int log_got_error;
+ static int in_cleanup = 0;
+
+
+ /* disallow deep recursive calls */
+ if (in_cleanup > 10)
+ return;
+ in_cleanup++;
 
 	signal(SIGUSR1, SIG_IGN);
 	signal(SIGUSR2, SIG_IGN);
Received on Sun Jan 12 11:25:14 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:48:28 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library