title: launch process with fork and exec while redirecting stdout to /dev/null
body: <p>I have a very specific problem for which I am unable to find the answer after numerous searches.  I have a linux program.  It's job is to launch another secondary executable (via <code>fork()</code> and <code>exec()</code>) when it receives a specific message over the network.  I do not have access to modify the secondary executable.</p>
  
  <p>My program prints all its TTY to stdout, and I typically launch it via <code>./program &gt; output.tty</code>  The problem I have is that this second executable is very verbose.  It simultaneously prints to stdout while also putting the same TTY in a log file.  So my <code>output.tty</code> file ends up containing both output streams.</p>
  
  <p>How can I set things up such that the secondary executable's TTY gets redirected to <code>/dev/null</code>?  I can't use <code>system()</code> because I can't afford to wait for the child process.  I need to be able to fire and forget.</p>
  
  <p>Thanks.</p>