title: (c/c++) trying to force EOF from parent process sending input to child process
body: <p>i have a very simple c/c++ program that forks a child process to execute another program, and then sends some data to that child program, and waits for the response.</p>
  
  <p>the child program reads from stdin and waits for EOF before it continues.</p>
  
  <p>my problem is, the child program receives the initial input from the pipe writing, but it never sees an EOF (even though I close the pipe), so it waits forever.</p>
  
  <p>i'm not sure why closing the pipe doesn't imply the EOF for the child's stdin?</p>
  
  <p>here's the code:</p>
  
  <p><a href="http://gist.github.com/621210" rel="noreferrer">http://gist.github.com/621210</a></p>