[PATCH] worker: call selector.close() to release polling resources

Yuya Nishihara yuya at tcha.org
Thu Jul 19 12:45:30 UTC 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1532003784 -32400
#      Thu Jul 19 21:36:24 2018 +0900
# Node ID 1bbd55ffc97113dfbed4e8735c77b70ab124ce88
# Parent  25880ddf9a86dc8abb6e5ae3e4f0252425fae264
worker: call selector.close() to release polling resources

diff --git a/mercurial/worker.py b/mercurial/worker.py
--- a/mercurial/worker.py
+++ b/mercurial/worker.py
@@ -212,6 +212,7 @@ def _posixworker(ui, func, staticargs, a
         signal.signal(signal.SIGINT, oldhandler)
         waitforworkers()
         signal.signal(signal.SIGCHLD, oldchldhandler)
+        selector.close()
         status = problem[0]
         if status:
             if status < 0:


More information about the Mercurial-devel mailing list