Mercurial > hg-stable
diff mercurial/commandserver.py @ 29580:ee8186457516
commandserver: send pgid in hello message
See the next patches for why we need it.
author | Jun Wu <quark@fb.com> |
---|---|
date | Sun, 17 Jul 2016 22:56:05 +0100 |
parents | 9da1adc18639 |
children | 6ed452d0f1f1 |
line wrap: on
line diff
--- 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)