ptrace: ptrace_attach: use send_sig_info() instead force_sig_specific()
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 30 Apr 2008 07:53:14 +0000 (00:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:38 +0000 (08:29 -0700)
commit33e9fc7d01269737cd5a3b6de1db9d0e796ab708
tree36084d425e4d39ea06acff6f12164f257d0a102c
parent68cb94786630b34196713794a2880ade17fca887
ptrace: ptrace_attach: use send_sig_info() instead force_sig_specific()

Nobody can block/ignore SIGSTOP, no need to use force_sig_specific() in
ptrace_attach.  Use the "regular" send_sig_info().

With this patch stracing of /sbin/init doesn't clear its SIGNAL_UNKILLABLE,
but not that this makes ptracing of init safe.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/ptrace.c