From: Oleg Nesterov Date: Thu, 2 Apr 2009 23:58:11 +0000 (-0700) Subject: ptrace: kill __ptrace_detach(), fix ->exit_state check X-Git-Tag: v2.6.30-rc1~333 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95c3eb76dc07fd81289888ffc42948196b34b444;p=pandora-kernel.git ptrace: kill __ptrace_detach(), fix ->exit_state check Move the code from __ptrace_detach() to its single caller and kill this helper. Also, fix the ->exit_state check, we shouldn't wake up EXIT_DEAD tasks. Actually, I think task_is_stopped_or_traced() makes more sense, but this needs another patch. Signed-off-by: Oleg Nesterov Cc: Jerome Marchand Cc: Roland McGrath Cc: Denys Vlasenko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed