Show More
@@ -119,9 +119,10 b' def _posixworker(ui, func, staticargs, a' | |||||
119 | st = _exitstatus(st) |
|
119 | st = _exitstatus(st) | |
120 | if st and not problem[0]: |
|
120 | if st and not problem[0]: | |
121 | problem[0] = st |
|
121 | problem[0] = st | |
122 | killworkers() |
|
|||
123 | def sigchldhandler(signum, frame): |
|
122 | def sigchldhandler(signum, frame): | |
124 | waitforworkers(blocking=False) |
|
123 | waitforworkers(blocking=False) | |
|
124 | if problem[0]: | |||
|
125 | killworkers() | |||
125 | oldchldhandler = signal.signal(signal.SIGCHLD, sigchldhandler) |
|
126 | oldchldhandler = signal.signal(signal.SIGCHLD, sigchldhandler) | |
126 | for pargs in partition(args, workers): |
|
127 | for pargs in partition(args, workers): | |
127 | pid = os.fork() |
|
128 | pid = os.fork() |
General Comments 0
You need to be logged in to leave comments.
Login now