cloudfoundry-incubator/warden-linux — pull request #7 by vito (2014-07-12 05:32:48+00:00)
Title: fix accidental butchering of stdout/stderr when in tty mode

previously the same FD (master pty) was sent over for both stdout/stderr,
which meant linking would read from the same file in two separate goroutines,
printing to stdout/stderr, leaving the output jumbled and arbitrarily diced
and reordered.

instead, if we're spawning with a tty, send a dummy pipe for stderr, so that
only stdout will receive the data.