]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ptrace-fix-2.5.56-A0
authorIngo Molnar <mingo@elte.hu>
Sat, 11 Jan 2003 02:16:32 +0000 (18:16 -0800)
committerIngo Molnar <mingo@elte.hu>
Sat, 11 Jan 2003 02:16:32 +0000 (18:16 -0800)
This patch from Roland McGrath fixes a threading related ptrace bug:
PTRACE_ATTACH should not stop everybody for each thread attached.

kernel/ptrace.c

index 7e20ed1c1d8a6029b0dcefb47c903eacfb3c24f4..a16dfb90d4121f9133e4334dfcfffa44f3ea100a 100644 (file)
@@ -115,7 +115,7 @@ int ptrace_attach(struct task_struct *task)
        __ptrace_link(task, current);
        write_unlock_irq(&tasklist_lock);
 
-       send_sig(SIGSTOP, task, 1);
+       force_sig_specific(SIGSTOP, task);
        return 0;
 
 bad: