# HG changeset patch # User Yuya Nishihara # Date 2016-07-16 05:46:31 # Node ID 536eec443b4ae4ed7d7b407d55c190f8babcd2d6 # Parent 42cdba9cfee4e6d4ecbee3541beb7517c4ee0f5a commandserver: rename _serveworker() to _runworker() "run" sounds more natural as the function does never listen for new connection. diff --git a/mercurial/commandserver.py b/mercurial/commandserver.py --- a/mercurial/commandserver.py +++ b/mercurial/commandserver.py @@ -484,7 +484,7 @@ class unixforkingservice(object): conn.close() # release handle in parent process else: try: - self._serveworker(conn) + self._runworker(conn) conn.close() os._exit(0) except: # never return, hence no re-raises @@ -514,7 +514,7 @@ class unixforkingservice(object): self.ui.debug('worker process exited (pid=%d)\n' % pid) self._workerpids.discard(pid) - def _serveworker(self, conn): + def _runworker(self, conn): signal.signal(signal.SIGCHLD, self._oldsigchldhandler) _initworkerprocess() h = self._servicehandler