changeset 38740:c08ea1e219c0 stable

worker: call selector.close() to release polling resources
author Yuya Nishihara <yuya@tcha.org>
date Thu, 19 Jul 2018 21:36:24 +0900
parents 7acec9408e1c
children e90130af47ce
files mercurial/worker.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/worker.py	Thu Jul 19 13:55:54 2018 -0400
+++ b/mercurial/worker.py	Thu Jul 19 21:36:24 2018 +0900
@@ -212,6 +212,7 @@
         signal.signal(signal.SIGINT, oldhandler)
         waitforworkers()
         signal.signal(signal.SIGCHLD, oldchldhandler)
+        selector.close()
         status = problem[0]
         if status:
             if status < 0: