commandserver: rename _serveworker() to _runworker()
authorYuya Nishihara <yuya@tcha.org>
Sat, 16 Jul 2016 14:46:31 +0900
changeset 29587 536eec443b4a
parent 29586 42cdba9cfee4
child 29588 1bb94666b9fc
commandserver: rename _serveworker() to _runworker() "run" sounds more natural as the function does never listen for new connection.
mercurial/commandserver.py
--- a/mercurial/commandserver.py	Sun May 22 13:53:32 2016 +0900
+++ b/mercurial/commandserver.py	Sat Jul 16 14:46:31 2016 +0900
@@ -484,7 +484,7 @@
                     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 @@
             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