[PATCH] Handle CLONE_PARENT flag

Wang Chao wang.chao at cn.fujitsu.com
Fri Aug 6 06:51:19 UTC 2010


Hi Roland,
> It would be nice to see a test case
> where the old code goes wrong and the fix makes it better.
> 

I attached a simple program. The wait call returns immediately
and the whole program ends up normally. But if we use strace to
trace it, because strace doesn't handle CLONE_PARENT, the wait
call will be blocked by strace, and trace will not end up until
we kill the new cloned process, which is obviously not correct.

Best regards,
Wang Chao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clone_parent.c
Type: image/x-xbitmap
Size: 1016 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20100806/6602437d/attachment.xbm>


More information about the Strace-devel mailing list