|
From: David T. <twe...@ya...> - 2006-05-03 12:20:53
|
--- David Tweed <twe...@ya...> wrote:
> Is there any simple call I can put into my code to
> stop valgrind writing output for child branch of the
> fork()?
Just for completeness of the e-mail archives: once I
discovered that it's the exec family of functions that
stop valgrind for --trace-children=no, I realised that
rather than terminate the intermediate child with
_exit(0) I could terminate with
execl("/bin/true","/bin/true",(char *) NULL);
which suppresses valgrind's final output in that
branch. Ugly, but it's only debugging code :-) .
cheers, dave tweed
___________________________________________________________
Yahoo! Photos NEW, now offering a quality print service from just 7p a photo http://uk.photos.yahoo.com
|