[PATCH/v2] Do not trace children with CLONE_UNTRACED flag

Roland McGrath roland at redhat.com
Wed Sep 15 06:09:54 UTC 2010


> If clone is called with flag CLONE_UNTRACED, I think we should
> not set CLONE_PTRACE flag in its arguments.

Please add a comment in the code about why this is the desireable behavior.
AFAIK the only reason is something like, "We won't see this clone child at
all if we rely on PTRACE_O_TRACECLONE, so be consistent by never tracing it."

Otherwise, this is fine with me, assuming you have tested it.


Thanks,
Roland




More information about the Strace-devel mailing list