projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Isolate some explicit usage of task->tgid
[linux-2.6-block.git]
/
kernel
/
ptrace.c
diff --git
a/kernel/ptrace.c
b/kernel/ptrace.c
index b0ace60ce596c9b41ed3e397de35b05fd6b535e7..7c76f2ffaeaad78060cfb3223857a89c7a4ccb8f 100644
(file)
--- a/
kernel/ptrace.c
+++ b/
kernel/ptrace.c
@@
-169,7
+169,7
@@
int ptrace_attach(struct task_struct *task)
retval = -EPERM;
if (task->pid <= 1)
goto out;
- if (
task->tgid == current->tgid
)
+ if (
same_thread_group(task, current)
)
goto out;
repeat: