mercurial/commandserver.py
changeset 29580 ee8186457516
parent 29548 9da1adc18639
child 29585 6ed452d0f1f1
--- 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)