Show More
@@ -250,8 +250,10 b' def _posixworker(ui, func, staticargs, a' | |||
|
250 | 250 | os.close(r) |
|
251 | 251 | os.close(w) |
|
252 | 252 | os.close(rfd) |
|
253 | for result in func(*(staticargs + (pargs,))): | |
|
254 | os.write(wfd, pickle.dumps(result)) | |
|
253 | with os.fdopen(wfd, 'wb') as wf: | |
|
254 | for result in func(*(staticargs + (pargs,))): | |
|
255 | pickle.dump(result, wf) | |
|
256 | wf.flush() | |
|
255 | 257 | return 0 |
|
256 | 258 | |
|
257 | 259 | ret = scmutil.callcatch(ui, workerfunc) |
General Comments 0
You need to be logged in to leave comments.
Login now