]> err.no Git - linux-2.6/blobdiff - kernel/ptrace.c
Merge branch 'for-2.6.25' of git://git.kernel.org/pub/scm/linux/kernel/git/olof/pasem...
[linux-2.6] / kernel / ptrace.c
index b0ace60ce596c9b41ed3e397de35b05fd6b535e7..7c76f2ffaeaad78060cfb3223857a89c7a4ccb8f 100644 (file)
@@ -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: