Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13629
b: refs/heads/master
c: 28d838c
h: refs/heads/master
i:
  13627: 864f456
v: v3
  • Loading branch information
Linus Torvalds committed Nov 9, 2005
1 parent 37ff0c1 commit 30ffb9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: ac111bfaa6b0b3c0edc63c27bd9617d6b08851ff
refs/heads/master: 28d838cc4dfea980cb6eda0a7409cbf91889ca74
2 changes: 1 addition & 1 deletion trunk/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ int ptrace_attach(struct task_struct *task)
retval = -EPERM;
if (task->pid <= 1)
goto bad;
if (task == current)
if (task->tgid == current->tgid)
goto bad;
/* the same process cannot be attached many times */
if (task->ptrace & PT_PTRACED)
Expand Down

0 comments on commit 30ffb9c

Please sign in to comment.