# HG changeset patch # User Jun Wu # Date 1468792565 -3600 # Node ID ee8186457516ed1341db5fdfd9cd98bac6db99d0 # Parent 43f3c0df2fabcbf45983b4a612c9d21fca818663 commandserver: send pgid in hello message See the next patches for why we need it. diff -r 43f3c0df2fab -r ee8186457516 mercurial/commandserver.py --- a/mercurial/commandserver.py Sun Jul 17 11:28:01 2016 -0700 +++ b/mercurial/commandserver.py Sun Jul 17 22:56:05 2016 +0100 @@ -282,6 +282,9 @@ hellomsg += 'encoding: ' + encoding.encoding hellomsg += '\n' hellomsg += 'pid: %d' % util.getpid() + if util.safehasattr(os, 'getpgid'): + hellomsg += '\n' + hellomsg += 'pgid: %d' % os.getpgid(0) # write the hello msg in -one- chunk self.cout.write(hellomsg)