Re: [PATCHv3 06/13] run-command: add an asynchronous parallel child processor
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 22, 2015, 19:53 UTC
- Message-ID
- <xmqqtwqm2puk.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAGZ79kbUkUSAP+muhYxTwHZdD+ojJYXjogZfRXs0PemEdcqfbA@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
> So how would you find out when we are done?
while (1) {
if (we have available slot)
ask to start a new one;
if (nobody is running anymore)
break;
collect the output from running ones;
drain the output from the foreground one;
cull the finished process;
}