Show More
@@ -213,11 +213,7 b' def _posixworker(ui, func, staticargs, a' | |||||
213 | waitforworkers() |
|
213 | waitforworkers() | |
214 | signal.signal(signal.SIGCHLD, oldchldhandler) |
|
214 | signal.signal(signal.SIGCHLD, oldchldhandler) | |
215 | selector.close() |
|
215 | selector.close() | |
216 |
|
|
216 | return problem[0] | |
217 | if status: |
|
|||
218 | if status < 0: |
|
|||
219 | os.kill(os.getpid(), -status) |
|
|||
220 | sys.exit(status) |
|
|||
221 | try: |
|
217 | try: | |
222 | openpipes = len(pipes) |
|
218 | openpipes = len(pipes) | |
223 | while openpipes > 0: |
|
219 | while openpipes > 0: | |
@@ -236,7 +232,11 b' def _posixworker(ui, func, staticargs, a' | |||||
236 | killworkers() |
|
232 | killworkers() | |
237 | cleanup() |
|
233 | cleanup() | |
238 | raise |
|
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 | def _posixexitstatus(code): |
|
241 | def _posixexitstatus(code): | |
242 | '''convert a posix exit status into the same form returned by |
|
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