# HG changeset patch # User Yuya Nishihara # Date 2018-07-19 12:36:24 # Node ID c08ea1e219c087bb78961925b0fdd07c6566a1c0 # Parent 7acec9408e1c4bc858177284ea1ed24ba5e1612e 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: