ptrace: remove silly wait_trap variable from ptrace_attach()
authorTejun Heo <tj@kernel.org>
Thu, 2 Jun 2011 09:13:59 +0000 (11:13 +0200)
committerOleg Nesterov <oleg@redhat.com>
Sat, 4 Jun 2011 16:17:09 +0000 (18:17 +0200)
commit0b1007c3578569469a6fab6ae5cca918ccdc3ee1
treef6a5254c6f8caeb843fc1a130f7642b9a55a2694
parent23c79d31a3dd2602ee1a5ff31303b2d7a2d3c159
ptrace: remove silly wait_trap variable from ptrace_attach()

Remove local variable wait_trap which determines whether to wait for
!TRAPPING or not and simply wait for it if attach was successful.

-v2: Oleg pointed out wait should happen iff attach was successful.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
kernel/ptrace.c