mercurial/chgserver.py
changeset 44629 d37975386798
parent 44616 bdc8a5944d44
child 44867 8e8fd938ca07
equal deleted inserted replaced
44628:4dacd0cef146 44629:d37975386798
   526         self._setumask(data)
   526         self._setumask(data)
   527 
   527 
   528     def _setumask(self, data):
   528     def _setumask(self, data):
   529         mask = struct.unpack(b'>I', data)[0]
   529         mask = struct.unpack(b'>I', data)[0]
   530         self.ui.log(b'chgserver', b'setumask %r\n', mask)
   530         self.ui.log(b'chgserver', b'setumask %r\n', mask)
   531         os.umask(mask)
   531         util.setumask(mask)
   532 
   532 
   533     def runcommand(self):
   533     def runcommand(self):
   534         # pager may be attached within the runcommand session, which should
   534         # pager may be attached within the runcommand session, which should
   535         # be detached at the end of the session. otherwise the pager wouldn't
   535         # be detached at the end of the session. otherwise the pager wouldn't
   536         # receive EOF.
   536         # receive EOF.