]> granicus.if.org Git - strace/commitdiff
Ignore errors if a thread is killed
authorAndreas Schwab <schwab@redhat.com>
Wed, 11 Nov 2009 12:54:04 +0000 (13:54 +0100)
committerAndreas Schwab <schwab@redhat.com>
Wed, 11 Nov 2009 12:54:04 +0000 (13:54 +0100)
* util.c (clearbpt): Ignore ESRCH error.

util.c

diff --git a/util.c b/util.c
index a471590c76c3e88542afa069c6a4d11f90a53d5e..78b142726d190430ce54b0b9cb75a8cc9514d81b 100644 (file)
--- 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;
 }