title: python: multiprocessing.Pipe and redirecting stdout
body: <p>I am using <code>multiprocessing</code> package to spawn a second process from which I would like to redirect stdout and stderr into the first process. I am using <code>multiprocessing.Pipe</code> object:</p>
  
  <pre><code>dup2(output_pipe.fileno(), 1)
  </code></pre>
  
  <p>Where <code>output_pipe</code> is an instance of <code>multiprocessing.Pipe</code>. However, when I try to read on the other end, it just hangs. I tried reading using <code>Pipe.recv_bytes</code> with a limit, but that raises an <code>OSError</code>. Is this possible at all or should I just switch to some lower level pipe functions?</p>