-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Defapp] Use real HPCON for PTY management; Have Monarch always listen for connections #10170
Conversation
How did the bot miss Psuedo |
This comment has been minimized.
This comment has been minimized.
psuedoconsole was in |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to have more info on what difference duplicating the handles twice does, but the rest of this looks fine. Maybe spin one build with both duplications and one without, and see what the difference has. I don't want to leak processes when we're closed, but I also don't want to crash accidentally.
Dual duplication is a leak because I don't free one of the copies. I wanted the pty-api-like func to not trust the caller so it duped. The other dupe was because it HAS to on the way in the COM call. But my func signature isn't wil::unique_handle so nothing tracks ownership, the bare HANDLE is just a number. So anyone closing it ruins it for the whole app. However, I realize I wrote the Pack API quickly for us only so I can refine that later if necessary and ONE dupe overall in this process space (that is tracked... in this case by holding the HPCON) is sufficient. |
@msftbot merge this in 1 minute |
Hello @DHowett! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
🎉 Handy links: |
🎉 Handy links: |
[Defapp] Use real HPCON for PTY management; Have Monarch always listen for connections
PR Checklist
Detailed Description of the Pull Request / Additional comments