##// END OF EJS Templates
worker: stop using a separate thread waiting for children...
Jun Wu -
r30416:c27614f2 default
parent child Browse files
Show More
@@ -11,7 +11,6 b' import errno'
11 import os
11 import os
12 import signal
12 import signal
13 import sys
13 import sys
14 import threading
15
14
16 from .i18n import _
15 from .i18n import _
17 from . import (
16 from . import (
@@ -138,11 +137,9 b' def _posixworker(ui, func, staticargs, a'
138 pids.add(pid)
137 pids.add(pid)
139 os.close(wfd)
138 os.close(wfd)
140 fp = os.fdopen(rfd, 'rb', 0)
139 fp = os.fdopen(rfd, 'rb', 0)
141 t = threading.Thread(target=waitforworkers)
142 t.start()
143 def cleanup():
140 def cleanup():
144 signal.signal(signal.SIGINT, oldhandler)
141 signal.signal(signal.SIGINT, oldhandler)
145 t.join()
142 waitforworkers()
146 signal.signal(signal.SIGCHLD, oldchldhandler)
143 signal.signal(signal.SIGCHLD, oldchldhandler)
147 status = problem[0]
144 status = problem[0]
148 if status:
145 if status:
General Comments 0
You need to be logged in to leave comments. Login now