Re: [PATCH 2/8] run-command: Call get_next_task with a clean child process.

2015-10-21 Thread Stefan Beller
On Wed, Oct 21, 2015 at 1:30 PM, Junio C Hamano wrote: > Junio C Hamano writes: > >> And of course we already have these array-clear calls in >> finish_command(). >> >> So I agree that deinit helper should exist, but >> >> * it should be file-scope static; >> >> * it should be called by finish_

Re: [PATCH 2/8] run-command: Call get_next_task with a clean child process.

2015-10-21 Thread Junio C Hamano
Junio C Hamano writes: > And of course we already have these array-clear calls in > finish_command(). > > So I agree that deinit helper should exist, but > > * it should be file-scope static; > > * it should be called by finish_command(); and > > * if you are calling it from collect_finished()

Re: [PATCH 2/8] run-command: Call get_next_task with a clean child process.

2015-10-20 Thread Junio C Hamano
Stefan Beller writes: > If the `get_next_task` did not explicitly called child_process_init > and only filled in some fields, there may have been some stale data > in the child process. This is hard to debug and also adds a review > burden for each new user of that API. To improve the situation,

Re: [PATCH 2/8] run-command: Call get_next_task with a clean child process.

2015-10-20 Thread Junio C Hamano
Stefan Beller writes: > If the `get_next_task` did not explicitly called child_process_init > and only filled in some fields, there may have been some stale data > in the child process. This is hard to debug and also adds a review > burden for each new user of that API. To improve the situation,

[PATCH 2/8] run-command: Call get_next_task with a clean child process.

2015-10-20 Thread Stefan Beller
If the `get_next_task` did not explicitly called child_process_init and only filled in some fields, there may have been some stale data in the child process. This is hard to debug and also adds a review burden for each new user of that API. To improve the situation, we pass only cleanly initialized