Re: [patch] O(1) sys_exit(), threading, scalable-exit-2.5.31-A6

From: Ingo Molnar (
Date: Mon Aug 19 2002 - 13:08:10 EST

On Mon, 19 Aug 2002, Linus Torvalds wrote:

> I'd be happy to apply this patch (well, your fixed version), but I think
> I'd prefer even more to make the whole reparenting go away, and keep the
> child list valid all through the lifetime of a process. How painful
> could that be?

the problem is that the tracing task wants to do a wait4() on all traced
children, and the only way to get that is to have the traced tasks in the
child list. Eg. strace -f traces a random number of tasks, and after the
PTRACE_CONTINUE call, the wait4 done by strace must be able to 'get
events' from pretty much any of the traced tasks. So unless the ptrace
interface is reworked in an incompatible way, i cannot see how this would
work. wait4 could perhaps somehow search the whole tasklist, but that
could be a pretty big pain even for something like strace.


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

This archive was generated by hypermail 2b29 : Fri Aug 23 2002 - 22:00:17 EST