std: Avoid deadlocking in ChildProcess.exec

Reading stdin&stderr at different times may lead to nasty deadlocks (eg.
when stdout is read before stderr and the child process doesn't write
anything onto stdout).

Implement a polling mechanism to make sure this won't happen: we read
data from stderr/stdout as it becomes ready and then it's copied into an
ArrayList provided by the user, avoiding any kind of blocking read.
dc810eb73bLemonBoy committed on 12/29/2020, 5:40:00 PM· committed by Andrew Kelleyparent1590ed9
3 files changedLine totals unavailable