> in fact we have this already, almost:
>
> if (!list_empty(¤t->ptrace_children))
>
> then block (or return -EAGAIN). Instead of the current -ENOCHLD.
No fair adding new code in the middle of a discussion :)
Seriously, that looks like it solves the problem.
Dave
======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059
-
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/