Fix race in ProcessRunner.cs where we might not wait for output
It's possible to get Process.OutputDataReceived or ErrorDataReceived to fire after you've got the Exited message from the process. You must call WaitForExit to confirm that everything is completely done before continuing. Otherwise, we return still-mutating lists to the caller who started the Process which isn't going to be ready for that.
Showing
想要评论请 注册 或 登录