summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/linux/linux_ptrace.c')
-rw-r--r--sys/i386/linux/linux_ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/linux/linux_ptrace.c b/sys/i386/linux/linux_ptrace.c
index 536188b..a19dcc7 100644
--- a/sys/i386/linux/linux_ptrace.c
+++ b/sys/i386/linux/linux_ptrace.c
@@ -409,7 +409,7 @@ linux_ptrace(struct thread *td, struct linux_ptrace_args *uap)
}
/* not currently stopped */
- if (p->p_stat != SSTOP || (p->p_flag & P_WAITED) == 0) {
+ if ((p->p_flag & (P_TRACED|P_WAITED)) == 0) {
error = EBUSY;
goto fail;
}
OpenPOWER on IntegriCloud