Replace ConhostConnection with ConptyConnection#3461
Conversation
|
There's an argument to be made that I should be using the modern threadpooling APIs, but.. that would require us to have a shared threadpool onto which all work gets dispatched instead of letting the system manage one for us. Why would we not want the system to manage one for us? |
Per offline discussion, plx try it. |
|
Done, and fixed SA too. |
932775a to
8bde4c2
Compare
This commit deletes ConhostConnection and replaces it with ConptyConnection. The ConptyConnection uses CreatePseudoConsole and depends on winconpty to override the one from kernel32. * winconpty must be packagebale, so I've added GetPackagingOutputs. * To validate this, I added conpty.dll to the MSIX regression script. * I moved the code from conpty-universal that deals with environment strings into the types library. This puts us in a way better place to implement #2563, as we can now separately detect a failure to launch a pseudoconsole, a failure to CreateProcess, and a failure of the launched process. Fixes #1131.
8bde4c2 to
01a146f
Compare
Co-Authored-By: Mike Griese <[email protected]>
|
I am using my admin powers because 1. the only change was in a comment and 2. code formatter phase passed |
889 deletions is pretty good. |
This also sets up TerminalConnection to _have_ resources, which will be useful for the messages in #3461.
|
🎉 Handy links: |
This commit deletes ConhostConnection and replaces it with
ConptyConnection. The ConptyConnection uses CreatePseudoConsole and
depends on winconpty to override the one from kernel32.
strings into the types library.
This puts us in a way better place to implement #2563, as we can now
separately detect a failure to launch a pseudoconsole, a failure to
CreateProcess, and a failure of the launched process.
Fixes #1131.
References
Relevant to #2563.
PR Checklist
Validation Steps Performed
Launched WT a bunch, with shells and pseudoterminal hosts that didn't exist, and killed various processes all over the tree.