From: Olly B. <ol...@su...> - 2003-03-31 12:38:41
|
On Mon, Mar 31, 2003 at 08:49:56AM +0100, Nicholas Nethercote wrote: > On Mon, 31 Mar 2003, Olly Betts wrote: > > > A third possibility I've just thought of is to use: > > > > valgrind --logfile-fd=-1 /dev/null [program and args] > > > > (Or redirect to a particular fd and direct that to /dev/null but then > > that fd might be used by something - -1 is nice as it always works...) > > That seems a good way to do it, since it doesn't require any changes. > > Is -1 the file descriptor for /dev/null, or is it just an invalid file > descriptor and thus the output goes nowhere? It's invalid. > I just tried it, you don't need to write /dev/null in the command line as > you have above. Sorry yes. I originally had "--logfile-fd=3 3> /dev/null" and apparently failed to edit out the "/dev/null" as well as the "3>" when I realised -1 would be a better option. To be clear: valgrind --logfile-fd=-1 [program and args] Cheers, Olly |