mercurial/cmdutil.py
changeset 9958 777c1df76ef4
parent 9928 a92539567ef3
child 9963 a68fb6f4ae4b
--- a/mercurial/cmdutil.py	Mon Nov 30 19:52:03 2009 +0100
+++ b/mercurial/cmdutil.py	Tue Nov 17 18:50:39 2009 +0900
@@ -588,7 +588,7 @@
         initfn()
 
     if opts['pid_file']:
-        fp = open(opts['pid_file'], 'w')
+        fp = open(opts['pid_file'], 'a')
         fp.write(str(os.getpid()) + '\n')
         fp.close()