Re: [PATCH v2 2/2] run-command: use thread-aware die_is_recursing routine

2013-04-16 Thread Junio C Hamano
Jeff King writes: > diff --git a/run-command.c b/run-command.c > index 765c2ce..1b32a12 100644 > --- a/run-command.c > +++ b/run-command.c > @@ -588,6 +588,7 @@ static pthread_key_t async_key; > static pthread_t main_thread; > static int main_thread_set; > static pthread_key_t async_key; > +st

[PATCH v2 2/2] run-command: use thread-aware die_is_recursing routine

2013-04-16 Thread Jeff King
If we die from an async thread, we do not actually exit the program, but just kill the thread. This confuses the static counter in usage.c's default die_is_recursing function; it updates the counter once for the thread death, and then when the main program calls die() itself, it erroneously thinks