diff options
Diffstat (limited to 'include/linux/ptrace.h')
| -rw-r--r-- | include/linux/ptrace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index ebe0c17039cf..f98501ba557e 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h | |||
| @@ -98,6 +98,10 @@ extern void ptrace_untrace(struct task_struct *child); | |||
| 98 | extern int ptrace_may_attach(struct task_struct *task); | 98 | extern int ptrace_may_attach(struct task_struct *task); |
| 99 | extern int __ptrace_may_attach(struct task_struct *task); | 99 | extern int __ptrace_may_attach(struct task_struct *task); |
| 100 | 100 | ||
| 101 | static inline int ptrace_reparented(struct task_struct *child) | ||
| 102 | { | ||
| 103 | return child->real_parent != child->parent; | ||
| 104 | } | ||
| 101 | static inline void ptrace_link(struct task_struct *child, | 105 | static inline void ptrace_link(struct task_struct *child, |
| 102 | struct task_struct *new_parent) | 106 | struct task_struct *new_parent) |
| 103 | { | 107 | { |
