There is a couple of subtle checks which were needed to handle ptracing fromthe same thread group. This was deprecated a long ago, imho this code justcomplicates the understanding.

And, the "->parent->signal->flags & SIGNAL_GROUP_EXIT" check in exit_notify()is not right. SIGNAL_GROUP_EXIT can mean exec(), not exit_group(). This meansptracer can lose a ptraced zombie on exec(). Minor problem, but still the bug.

- if (unlikely(current->signal == current->parent->signal) &&- unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))- return 0;- /* * Are we in the middle of do_coredump? * If so and our tracer is also part of the coredump stopping-To unsubscribe from this list: send the line "unsubscribe linux-kernel" inthe body of a message to majordomo@vger.kernel.orgMore majordomo info at http://vger.kernel.org/majordomo-info.htmlPlease read the FAQ at http://www.tux.org/lkml/