Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Backed out Paul Green's IRIX patch since it didn't seem to be a part of
[rsync/rsync.git]
/
cleanup.c
diff --git
a/cleanup.c
b/cleanup.c
index
37e074a
..
b9e9dab
100644
(file)
--- a/
cleanup.c
+++ b/
cleanup.c
@@
-61,6
+61,13
@@
void _exit_cleanup(int code, const char *file, int line)
int ocode = code;
extern int keep_partial;
extern int log_got_error;
int ocode = code;
extern int keep_partial;
extern int log_got_error;
+ static int inside_cleanup = 0;
+
+ if (inside_cleanup != 0) {
+ /* prevent the occasional infinite recursion */
+ return;
+ }
+ inside_cleanup = 1;
signal(SIGUSR1, SIG_IGN);
signal(SIGUSR2, SIG_IGN);
signal(SIGUSR1, SIG_IGN);
signal(SIGUSR2, SIG_IGN);