[PATCH 5/4] run-command: implement abort_async for pthreads
- From
Jeff King <peff@peff.net>
- Date
- Mar 31, 2011, 18:45 UTC
- Message-ID
- <20110331184546.GA16981@sigill.intra.peff.net>
- In-Reply-To
- <20110331184243.GA12027@sigill.intra.peff.net>
We just need to cancel the thread, instead of sending it a signal as we do for fork()'d async sections.
Signed-off-by: Jeff King <peff@peff.net> --- This could also just be part of the merge resolution, but I thought it would be easier to see what is going on if I put it here.
run-command.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/run-command.c b/run-command.c index e31c073..46ea07d 100644 --- a/run-command.c +++ b/run-command.c @@ -607,7 +607,7 @@ void abort_async(struct async *async) #ifdef NO_PTHREADS kill(async->pid, 15); #else - /* no clue */ + pthread_cancel(async->tid); #endif finish_async(async); }
-- 1.7.4.13.g8566c