lkml.org 
[lkml]   [2001]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ptrace on stopped processes (2.4)
From
Date
vic <zandy@cs.wisc.edu> writes:

> --- linux-2.4.16/kernel/ptrace.c Wed Nov 21 16:43:01 2001
> +++ linux-2.4.16.1/kernel/ptrace.c Fri Dec 21 10:42:44 2001
> @@ -89,8 +89,10 @@
> SET_LINKS(task);
> }
> write_unlock_irq(&tasklist_lock);
> -
> - send_sig(SIGSTOP, task, 1);
> + if (task->state != TASK_STOPPED)
> + send_sig(SIGSTOP, task, 1);
> + else
> + task->exit_code = SIGSTOP;
> return 0;
>
> bad:

It seems that trace is started in the place different from
usual. Then, I think PTRACE_KILL doesn't work.

If it need, I think it should wake up a task.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.161 / U:2.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site