Ignore errors if a thread is killed

* util.c (clearbpt): Ignore ESRCH error.
This commit is contained in:
Andreas Schwab 2009-11-11 13:54:04 +01:00
parent 9906e6da8b
commit 46ed50d569

2
util.c
View File

@ -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;
}