terminal
terminal copied to clipboard
conpty hangs in _ClosePseudoConsoleMembers
Windows Terminal version
No response
Windows build number
10.0.22631.0
Other Software
vim 9.1
Steps to reproduce
git clone [email protected]:vim/vim.gitcd srcnmake -f .\Make_mvc.mak GUI=yes FEATURES=HUGE TERMINAL=yes DEBUG=yes.\gvimd.exe -U NONE -u NONE -c 'set go+=! | !dir'
Expected Behavior
No response
Actual Behavior
The program hangs.
Attacching a debugger shows the main thread waiting in _ClosePseudoConsoleMembers for conhost.exe to die.
The pipes passed by Vim are all closed by the time it calls ClosePseudoConsole, I've read the remark in the docs regarding the possibility for the function to hang, but here I'm not sure it applies to this case.