> > No, you only need to make debugged children slightly pecial in wait4(), in
> > that the parent must never see their state, only the fact that they are
> > there (as if they were still running, in short, regardless of their _real_
> > state)
>
> So does that mean we need something like a 'count of children stolen by
> debuggers' in the task struct that wait4() can check?
in fact we have this already, almost:
if (!list_empty(¤t->ptrace_children))
then block (or return -EAGAIN). Instead of the current -ENOCHLD.
Ingo
-
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/