summaryrefslogtreecommitdiff
path: root/cleanup.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-29 11:11:38 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-29 11:11:38 +0000
commit9b73d1c0e9ca979700493337d0a87497b882d811 (patch)
tree7c5c9db0aba0c86a01ea573089653127295f2b6e /cleanup.c
parentf3737e064849199071468eea8fe9fbf012d6ba7e (diff)
downloadrsync-9b73d1c0e9ca979700493337d0a87497b882d811.tar.gz
rsync-9b73d1c0e9ca979700493337d0a87497b882d811.tar.bz2
rsync-9b73d1c0e9ca979700493337d0a87497b882d811.zip
put the pid on each line of the log file to facilitate
auto-parsing. Requested by Jarkko Hietaniemi (jhi@iki.fi)
Diffstat (limited to 'cleanup.c')
-rw-r--r--cleanup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cleanup.c b/cleanup.c
index b4eac0c4..ee2fa4d5 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -57,6 +57,9 @@ void exit_cleanup(int code)
unlink(lp_pid_file());
}
}
+
+ if (code) log_exit(code);
+
exit(code);
}