|
@@ -1219,9 +1219,8 @@ int ptrace_request(struct task_struct *child, long request,
|
|
|
return ptrace_resume(child, request, data);
|
|
|
|
|
|
case PTRACE_KILL:
|
|
|
- if (child->exit_state) /* already dead */
|
|
|
- return 0;
|
|
|
- return ptrace_resume(child, request, SIGKILL);
|
|
|
+ send_sig_info(SIGKILL, SEND_SIG_NOINFO, child);
|
|
|
+ return 0;
|
|
|
|
|
|
#ifdef CONFIG_HAVE_ARCH_TRACEHOOK
|
|
|
case PTRACE_GETREGSET:
|