Roland, Jan, what user-space expects ptrace(DETACH, SIGKILL) should do?

My guess: this should really kill the tracee asap, hence this patch.

---

 kernel/ptrace.c |    5 +++++
 1 file changed, 5 insertions(+)

--- PU/kernel/ptrace.c~83_DETACH_SIGKILL        2009-10-10 17:43:28.000000000 
+0200
+++ PU/kernel/ptrace.c  2009-10-10 18:08:45.000000000 +0200
@@ -107,6 +107,11 @@ static void ptrace_detach_task(struct ta
                        break;
 
                case PTRACE_EVENT_SIGNAL:
+                       if (sig == SIGKILL) {
+                               send_sig_info(sig, SEND_SIG_NOINFO, tracee);
+                               break;
+                       }
+
                        if (valid_signal(sig))
                                context->signr = sig;
                        context->options = 0;

Reply via email to