##// END OF EJS Templates
worker: do not swallow exception occurred in main process...
Yuya Nishihara -
r41024:03f7d082 stable
parent child Browse files
Show More
@@ -213,11 +213,7 b' def _posixworker(ui, func, staticargs, a'
213 213 waitforworkers()
214 214 signal.signal(signal.SIGCHLD, oldchldhandler)
215 215 selector.close()
216 status = problem[0]
217 if status:
218 if status < 0:
219 os.kill(os.getpid(), -status)
220 sys.exit(status)
216 return problem[0]
221 217 try:
222 218 openpipes = len(pipes)
223 219 while openpipes > 0:
@@ -236,7 +232,11 b' def _posixworker(ui, func, staticargs, a'
236 232 killworkers()
237 233 cleanup()
238 234 raise
239 cleanup()
235 status = cleanup()
236 if status:
237 if status < 0:
238 os.kill(os.getpid(), -status)
239 sys.exit(status)
240 240
241 241 def _posixexitstatus(code):
242 242 '''convert a posix exit status into the same form returned by
General Comments 0
You need to be logged in to leave comments. Login now