[lkml]   [2002]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Fix for ptrace breakage

> This patch fixes the following,
> - race condition of ptrace flag
> - sent odd signal to the tracer
> - broken before behavior

(looks good to me). I'm wondering about the following:

- while (!list_empty(&current->children))
- zap_thread(list_entry(current->,struct task_struct,sibling), current, 0);
- while (!list_empty(&current->ptrace_children))
- zap_thread(list_entry(current->,struct task_struct,ptrace_list), current, 1);
+ while ((p = eldest_child(current)) != NULL)
+ zap_thread(p, current);

is it guaranteed that at this point current->ptrace_children is empty?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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