summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-04-15 16:29:39 +0000
committerjhb <jhb@FreeBSD.org>2003-04-15 16:29:39 +0000
commit64f102eb0c6137dcc101bf0ea82511cfca4eee83 (patch)
tree5152cbe9d8e8dc292174d9bbf46fdc0c0233b298 /sys
parente148bdd15cade5fa1e93112dfa26f56757ebdc26 (diff)
downloadFreeBSD-src-64f102eb0c6137dcc101bf0ea82511cfca4eee83.zip
FreeBSD-src-64f102eb0c6137dcc101bf0ea82511cfca4eee83.tar.gz
Sync up with changes to ptrace() and use P_SHOULDSTOP instead of
a duplicate P_TRACED check. Submitted by: marcel
Diffstat (limited to 'sys')
-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 530946a..adfe3df 100644
--- a/sys/i386/linux/linux_ptrace.c
+++ b/sys/i386/linux/linux_ptrace.c
@@ -388,7 +388,7 @@ linux_ptrace(struct thread *td, struct linux_ptrace_args *uap)
}
/* not currently stopped */
- if ((p->p_flag & (P_TRACED|P_WAITED)) == 0) {
+ if (!P_SHOULDSTOP(p) || (p->p_flag & P_WAITED) == 0) {
error = EBUSY;
goto fail;
}
OpenPOWER on IntegriCloud