]> granicus.if.org Git - strace/commitdiff
Don't kill the process when detaching
authorAndreas Schwab <schwab@redhat.com>
Tue, 12 Jan 2010 10:16:32 +0000 (11:16 +0100)
committerAndreas Schwab <schwab@redhat.com>
Tue, 12 Jan 2010 10:16:32 +0000 (11:16 +0100)
* strace.c (detach): Call clearbpt when TCB_BPTSET is set.

strace.c

index d2365169e5d051bc5b77e6757c181cf364f41341..23c3650fd6c869e99e58ead720a16b86fdc9fa05 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -1540,7 +1540,7 @@ int sig;
 #endif
 
        if (tcp->flags & TCB_BPTSET)
-               sig = SIGKILL;
+               clearbpt(tcp);
 
 #ifdef LINUX
        /*