charles-zablit wrote:

I'm not sure how we are going to do this without some sort of timeout.

When the process exits, we don't know if all the data is out of the pipe until 
we call ClosePseudoConsole.
But we can't call ClosePseudoConsole while reading otherwise there is a race 
condition in the reader.
Adding the mutex does not work because the last loop has to timeout for us to 
be able to access the mutex and close the pipe which exits the reader.

https://github.com/llvm/llvm-project/pull/182302
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to