diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-11-15 01:21:42 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-11-15 01:21:42 +0000 |
commit | a9766ef1472d04df22178f69ea7bfde36f2b7242 (patch) | |
tree | aca180cb9b884035c1cdf01c75a698b6e6b5da12 /cleanup.c | |
parent | 5a788adec19043d4d93c4fa2713f9f633bfd35ab (diff) | |
download | android_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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |