comparison 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
comparison
equal deleted inserted replaced
29579:43f3c0df2fab 29580:ee8186457516
280 hellomsg = 'capabilities: ' + ' '.join(sorted(self.capabilities)) 280 hellomsg = 'capabilities: ' + ' '.join(sorted(self.capabilities))
281 hellomsg += '\n' 281 hellomsg += '\n'
282 hellomsg += 'encoding: ' + encoding.encoding 282 hellomsg += 'encoding: ' + encoding.encoding
283 hellomsg += '\n' 283 hellomsg += '\n'
284 hellomsg += 'pid: %d' % util.getpid() 284 hellomsg += 'pid: %d' % util.getpid()
285 if util.safehasattr(os, 'getpgid'):
286 hellomsg += '\n'
287 hellomsg += 'pgid: %d' % os.getpgid(0)
285 288
286 # write the hello msg in -one- chunk 289 # write the hello msg in -one- chunk
287 self.cout.write(hellomsg) 290 self.cout.write(hellomsg)
288 291
289 try: 292 try: