forked from rook/rook
The io.MultiReader(r1, r2) reads r1 until EOF before moving on to r2. When used for stdout/stderr stderr will not be written to the log until stdout reaches EOF. This patch reads stderr in a go routine so that the two streams can be interleaved properly. Fixes: #2479 Signed-off-by: Noah Watkins <noahwatkins@gmail.com>