title: python pty.fork - how does it work
body: <p><a href="http://docs.python.org/library/pty.html" rel="noreferrer">http://docs.python.org/library/pty.html</a> says - </p>
  
  <blockquote>
    <p>pty.fork()¶
        Fork. Connect the child’s controlling terminal to a pseudo-terminal. Return value is (pid, fd). Note that the child gets pid 0, and the fd is invalid. The parent’s return value is the pid of the child, and fd is a file descriptor connected to the child’s controlling terminal (and also to the child’s standard input and output).</p>
  </blockquote>
  
  <p>What's does this mean ? Every process has 3 fd (stdin,stdout,stderr). 
  Does this affects these fds now ? will child process won't have any of these fds? I'm confused.--totally.</p>