From: Andreas Schwab Date: Wed, 11 Nov 2009 12:54:04 +0000 (+0100) Subject: Ignore errors if a thread is killed X-Git-Tag: v4.5.20~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46ed50d56909843420b0a0cb1360a500ce421d52;p=strace Ignore errors if a thread is killed * util.c (clearbpt): Ignore ESRCH error. --- diff --git a/util.c b/util.c index a471590c..78b14272 100644 --- a/util.c +++ b/util.c @@ -1710,7 +1710,7 @@ struct tcb *tcp; || restore_arg0 (tcp, &state, tcp->inst[0]) < 0 || restore_arg1 (tcp, &state, tcp->inst[1]) < 0 || arg_finish_change (tcp, &state)) - return -1; + if (errno != ESRCH) return -1; tcp->flags &= ~TCB_BPTSET; return 0; }