|
From: Tom H. <to...@co...> - 2006-09-13 09:13:50
|
In message <200...@or...>
Christoph Bartoschek <bar...@or...> wrote:
> I do not have the source of the program, but with strace I see that the new
> child is created with clone:
>
> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> child_tidptr=0x2aaaaada62d0) = 20888
>
> And then no execve is performed because the functionality of the child is in
> the same programimage.
On recent linux systems fork is actually done with clone so you do
have the situation I described.
Unfortunately --trace-children is not going to help you.
The problem is that valgrind can't really untangle itself from an
existing process, so it is only on an exec (when the process image
in memory is completely replace) that we can remove ourselves.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|