aboutsummaryrefslogtreecommitdiffstats
path: root/cleanup.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-15 01:21:42 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-15 01:21:42 +0000
commita9766ef1472d04df22178f69ea7bfde36f2b7242 (patch)
treeaca180cb9b884035c1cdf01c75a698b6e6b5da12 /cleanup.c
parent5a788adec19043d4d93c4fa2713f9f633bfd35ab (diff)
downloadandroid_external_rsync-a9766ef1472d04df22178f69ea7bfde36f2b7242.tar.gz
android_external_rsync-a9766ef1472d04df22178f69ea7bfde36f2b7242.tar.bz2
android_external_rsync-a9766ef1472d04df22178f69ea7bfde36f2b7242.zip
log filename(line) in exit_cleanup() to make tracking down problems
easier in rsync daemons.
Diffstat (limited to 'cleanup.c')
-rw-r--r--cleanup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cleanup.c b/cleanup.c
index ee2fa4d5..be795034 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -31,7 +31,7 @@ static int cleanup_fd1, cleanup_fd2;
static struct map_struct *cleanup_buf;
static int cleanup_pid = 0;
-void exit_cleanup(int code)
+void _exit_cleanup(int code, const char *file, int line)
{
extern int keep_partial;
@@ -58,7 +58,7 @@ void exit_cleanup(int code)
}
}
- if (code) log_exit(code);
+ if (code) log_exit(code, file, line);
exit(code);
}