diff options
author | Roland McGrath <roland@redhat.com> | 2005-01-09 23:18:02 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-09 23:18:02 -0800 |
commit | a9625ef18290632e9b2abf9e63bb90c0b9cb64a6 (patch) | |
tree | 0029159d4b4e9e3e98af07803527ae0cb09115d3 /include | |
parent | 819509c9c2185717899d9224ee81d74123f616ad (diff) | |
download | history-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.h | 1 |
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) |