Mercurial > hg-stable
changeset 29587:536eec443b4a
commandserver: rename _serveworker() to _runworker()
"run" sounds more natural as the function does never listen for new connection.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 16 Jul 2016 14:46:31 +0900 |
parents | 42cdba9cfee4 |
children | 1bb94666b9fc |
files | mercurial/commandserver.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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