Skip to content

Commit

Permalink
Merge branch 'tracehook' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/frob/linux-2.6-utrace

* 'tracehook' of git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-utrace:
  tracehook: fix CLONE_PTRACE
  • Loading branch information
Linus Torvalds committed Aug 8, 2008
2 parents 273b257 + 5861bbf commit aeee90d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/linux/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static inline void ptrace_init_task(struct task_struct *child, bool ptrace)
child->ptrace = 0;
if (unlikely(ptrace)) {
child->ptrace = current->ptrace;
__ptrace_link(child, current->parent);
ptrace_link(child, current->parent);
}
}

Expand Down
2 changes: 1 addition & 1 deletion include/linux/tracehook.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static inline void tracehook_report_clone(int trace, struct pt_regs *regs,
unsigned long clone_flags,
pid_t pid, struct task_struct *child)
{
if (unlikely(trace)) {
if (unlikely(trace) || unlikely(clone_flags & CLONE_PTRACE)) {
/*
* The child starts up with an immediate SIGSTOP.
*/
Expand Down

0 comments on commit aeee90d

Please sign in to comment.