spawn(move || NonBlockingReader::new("stdout", stdout, stdout_lines_tx).read_to_end());
let stdout_lines = LineReceiver::new("stdout", stdout_lines_rx, stdout_termination_rx);
// Set up thread to capture child stdout.
// Set up thread to capture child stderr.
let stderr = child.stderr.take().ok_or(TimeoutError::TakeStderr)?;
let (stderr_termination_tx, stderr_termination_rx) = sync_channel(1);
let (stderr_lines_tx, stderr_lines_rx) = sync_channel(MAX_OUTPUT_BYTES);