Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143211
b: refs/heads/master
c: f1671f6
h: refs/heads/master
i:
  143209: e89a613
  143207: b6b4cb3
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Apr 13, 2009
1 parent 36115d3 commit 79d7a67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b102d034c0affc6ee703b576f2496ec6cb81d79
refs/heads/master: f1671f6d783a2385d32e11f456cbe32f0e4b4b49
7 changes: 4 additions & 3 deletions trunk/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,11 @@ int ptrace_traceme(void)
ret = security_ptrace_traceme(current->parent);

/*
* Set the ptrace bit in the process ptrace flags.
* Then link us on our parent's ptraced list.
* Check PF_EXITING to ensure ->real_parent has not passed
* exit_ptrace(). Otherwise we don't report the error but
* pretend ->real_parent untraces us right after return.
*/
if (!ret) {
if (!ret && !(current->real_parent->flags & PF_EXITING)) {
current->ptrace |= PT_PTRACED;
__ptrace_link(current, current->real_parent);
}
Expand Down

0 comments on commit 79d7a67

Please sign in to comment.