##// END OF EJS Templates
worker: avoid potential partial write of pickled data...
Manuel Jacob -
r50164:395f2806 default
parent child Browse files
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 with os.fdopen(wfd, 'wb') as wf:
253 254 for result in func(*(staticargs + (pargs,))):
254 os.write(wfd, pickle.dumps(result))
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