n pid of 0 to the child process,
and pid of child to the parent process.
To both, return fd of newly opened pseudo-terminal.