[PATCH] Do not trace children created with CLONE_UNTRACED flag

Wang Chao wang.chao at cn.fujitsu.com
Wed Sep 8 05:53:27 UTC 2010


Sent on 2010-9-8 13:24, Roland McGrath wrote:
>> Yeah, I forgot the macro ARG_FLAGS. This change seems much simpler and
>> it's a good idea. Also we may add this check on syscall exit.
> 
> I see no reason for any additional check.  TCB_FOLLOWFORK won't be set
> and everything else should flow correctly from there.
> 

But I'm wondering the following situation though maybe it's not common:
we've already traced a process A and its children, A should have TCB_FOLLOWFORK
set. And then if A calls clone with CLONE_UNTRACED, I think strace will still 
allocate tcb for the new child which we don't trace.

I'm sorry if I don't understand correctly.

Thanks,
Wang Chao





More information about the Strace-devel mailing list