diff -r a6db1163befa -r 14033c5dd261 mercurial/commandserver.py --- a/mercurial/commandserver.py Mon Feb 08 00:47:36 2016 +0000 +++ b/mercurial/commandserver.py Wed Feb 03 09:11:22 2016 +0000 @@ -262,7 +262,7 @@ hellomsg += '\n' hellomsg += 'encoding: ' + encoding.encoding hellomsg += '\n' - hellomsg += 'pid: %d' % os.getpid() + hellomsg += 'pid: %d' % util.getpid() # write the hello msg in -one- chunk self.cout.write(hellomsg)