|
From: Tom H. <to...@co...> - 2005-09-24 21:39:07
|
In message <200...@ac...>
Julian Seward <js...@ac...> wrote:
> > Perhaps we need to similarly intercept /proc/self/cmdline?
>
> Yes. The least worst thing I can think of is to create a file
> /tmp/valgrind_fake_proc_self_cmdline_<pid> at startup, and intercept
> any attempts to open /proc/self/cmdline and reroute it to said
> file instead. Problem is the need to delete the file at the end,
> given all the multifarious crashing-out exit points there are.
Create it then delete it but hang on to the file handle and when
the client asks to open /proc/self/cmdline give them a dup of the
handle you are hanging on to.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|