changeset 9975:2e67734e1453

backout experimental change from 777c1df76ef4
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 01 Dec 2009 01:43:46 +0100
parents da5209afe1bc
children 46c6bac41dc6
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Dec 01 01:08:16 2009 +0100
+++ b/mercurial/cmdutil.py	Tue Dec 01 01:43:46 2009 +0100
@@ -588,7 +588,7 @@
         initfn()
 
     if opts['pid_file']:
-        fp = open(opts['pid_file'], 'a')
+        fp = open(opts['pid_file'], 'w')
         fp.write(str(os.getpid()) + '\n')
         fp.close()