diff mercurial/cmdutil.py @ 28027:14033c5dd261

util: enable getpid to be replaced This will enable tests to write stable process ids.
author timeless <timeless@mozdev.org>
date Wed, 03 Feb 2016 09:11:22 +0000
parents d3f1b7ee5e70
children ed4d06f180b8
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Mon Feb 08 00:47:36 2016 +0000
+++ b/mercurial/cmdutil.py	Wed Feb 03 09:11:22 2016 +0000
@@ -796,7 +796,7 @@
         initfn()
 
     if not opts['daemon']:
-        writepid(os.getpid())
+        writepid(util.getpid())
 
     if opts['daemon_pipefds']:
         lockpath = opts['daemon_pipefds']