ClosePseudoConsole does not close the process handle to conhost #17903
Labels
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Product-Conpty
For console issues specifically related to conpty
Resolution-Fix-Available
It's available in an Insiders build or a release
Resolution-Fix-Committed
Fix is checked in, but it might be 3-4 weeks until a release.
Windows Terminal version
N/A
Windows build number
10.0.22631.4037 (Windows 11 Pro, 23H2)
Other Software
(None, just Kernel32)
Steps to reproduce
Run the
EchoCon
sample and observe its handles before/after theClosePseudoConsole
call.ClosePseudoConsole(hPC)
handle.exe -p EchoCon.exe -a | findstr Process
when the program breaks atClosePseudoConsole(hPC)
handle.exe -p EchoCon.exe -a | findstr Process
Expected Behavior
ClosePseudoConsole
closes the handle to conhost.exe.Actual Behavior
ClosePseudoConsole
does not close the handle to conhost.exe (leaks the handle).This looks like a Kernel32 version of #8706.
The text was updated successfully, but these errors were encountered: