From patchwork Wed Jun 13 12:37:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3720: commandserver: close server's fds explicitly from a worker From: phabricator X-Patchwork-Id: 32106 Message-Id: <4f8df4374dc592626014b020de72b003@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Wed, 13 Jun 2018 12:37:21 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGc07424ec633c: commandserver: close server's fds explicitly from a worker (authored by quark, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3720?vs=9029&id=9042 REVISION DETAIL https://phab.mercurial-scm.org/D3720 AFFECTED FILES mercurial/commandserver.py CHANGE DETAILS To: quark, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/commandserver.py b/mercurial/commandserver.py --- a/mercurial/commandserver.py +++ b/mercurial/commandserver.py @@ -494,6 +494,8 @@ conn.close() # release handle in parent process else: try: + selector.close() + self._sock.close() self._runworker(conn) conn.close() os._exit(0)