summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-08-18 04:40:29 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-08-18 04:40:29 +0000
commit90cd8e3c4f966dcf705f24cbb16e85a7a4d6d090 (patch)
tree2efe38a27c3345b923885d098b070fe903ff4f19 /rdiff-backup/rdiff_backup
parent8d6d2f2f942222bc536743f9edc6e3e7198d593f (diff)
downloadrdiff-backup-90cd8e3c4f966dcf705f24cbb16e85a7a4d6d090.tar.gz
Write PID to current mirror marker
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@622 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r--rdiff-backup/rdiff_backup/Main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py
index 37309d9..9f507c7 100644
--- a/rdiff-backup/rdiff_backup/Main.py
+++ b/rdiff-backup/rdiff_backup/Main.py
@@ -453,8 +453,10 @@ def backup_touch_curmirror_local(rpin, rpout):
"""
mirrorrp = Globals.rbdir.append("current_mirror.%s.%s" % (Time.curtimestr,
"data"))
- Log("Touching mirror marker %s" % mirrorrp.path, 6)
- mirrorrp.touch()
+ Log("Writing mirror marker %s" % mirrorrp.path, 6)
+ try: pid = os.getpid()
+ except: pid = "NA"
+ mirrorrp.write_string("PID %s\n" % (pid,))
mirrorrp.fsync_with_dir()
def backup_remove_curmirror_local():