[Lldb-commits] [lldb] [lldb][windows] fix a race condition when closing the ConPTY (PR #182302)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 19 14:49:11 PST 2026
charles-zablit wrote:
> > I'm not sure how we are going to do this without some sort of timeout.
>
> The reader can be interrupted. Could we interrupt the reader in `OnExitProcess`?
The problem with interrupting is that if a read is in progress, the interrupt discards the data. However, it turns out we can keep the event set and complete the read on the next loop. The latest push push works (as far as I can tell): no truncated output and no 5s timeout.
I'm marking the PR as a draft for now, while cleanup the changes.
https://github.com/llvm/llvm-project/pull/182302
More information about the lldb-commits
mailing list