summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/sys_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index b445eca..11bbe3e 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -670,7 +670,7 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)
if (req == PT_DETACH) {
struct thread *td3;
FOREACH_THREAD_IN_PROC(p, td3)
- td->td_flags &= ~TDF_DBSUSPEND;
+ td3->td_flags &= ~TDF_DBSUSPEND;
}
/*
* unsuspend all threads, to not let a thread run,
OpenPOWER on IntegriCloud