aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2005-01-09 23:18:02 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-09 23:18:02 -0800
commita9625ef18290632e9b2abf9e63bb90c0b9cb64a6 (patch)
tree0029159d4b4e9e3e98af07803527ae0cb09115d3 /include
parent819509c9c2185717899d9224ee81d74123f616ad (diff)
downloadhistory-a9625ef18290632e9b2abf9e63bb90c0b9cb64a6.tar.gz
[PATCH] fix __ptrace_unlink TASK_TRACED recovery for real parent
The __ptrace_unlink code that checks for TASK_TRACED fixed the problem of a thread being left in TASK_TRACED when no longer being ptraced. However, an oversight in the original fix made it fail to handle the case where the child is ptraced by its real parent. Fixed thus. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ptrace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h
index f1824712509128..a373fc254df294 100644
--- a/include/linux/ptrace.h
+++ b/include/linux/ptrace.h
@@ -87,6 +87,7 @@ extern void ptrace_notify(int exit_code);
extern void __ptrace_link(struct task_struct *child,
struct task_struct *new_parent);
extern void __ptrace_unlink(struct task_struct *child);
+extern void ptrace_untrace(struct task_struct *child);
static inline void ptrace_link(struct task_struct *child,
struct task_struct *new_parent)