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.
34c00ecf57LemonBoy committed on 6/17/2021, 11:39:32 PM· committed by Jonathan Marlerparent6f0cfdb
3 files changedLine totals unavailable