[PATCH] Don't kill the process when detaching

Andreas Schwab schwab at redhat.com
Mon Jan 11 16:54:00 UTC 2010


>From 71ed53b3d56568e04c4ebeb487d6c92cbe20dc57 Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab at redhat.com>
Date: Mon, 11 Jan 2010 17:51:48 +0100
Subject: [PATCH] Don't kill the process when detaching

* strace.c (detach): Call clearbpt when TCB_BPTSET is set.
---
 strace.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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


Andreas.

-- 
Andreas Schwab, schwab at redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."




More information about the Strace-devel mailing list