changeset 45376 | 26eb62bd0550 |
parent 44248 | 12491abf93bd |
child 45390 | 7d24201b6447 |
--- a/mercurial/worker.py Mon Aug 10 21:46:47 2020 -0700 +++ b/mercurial/worker.py Thu Aug 13 10:37:25 2020 -0700 @@ -211,7 +211,7 @@ parentpid = os.getpid() pipes = [] retval = {} - for pargs in partition(args, workers): + for pargs in partition(args, min(workers, len(args))): # Every worker gets its own pipe to send results on, so we don't have to # implement atomic writes larger than PIPE_BUF. Each forked process has # its own pipe's descriptors in the local variables, and the parent