-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a potential deadlock for PtySignal::SetParent (#14463)
This changeset consists of two parts: * Refactor `PtySignalInputThread` to move more code from `_InputThread` into the various `_Do*` handlers. This allows us to precisely control console locking behavior which is the cause of this bug. * Add the 1-line fix to `_DoSetWindowParent` to unlock the console before calling foreign functions (`SetWindowLongPtrW` in this case). This fix is theoretical in nature, based on a memory dump from an affected user and most likely fixes: https://developercommunity.visualstudio.com/t/10199439 ## Validation Steps Performed * ConPTY tests complete. ✅ (cherry picked from commit 3c78e01) Service-Card-Id: 87207820 Service-Version: 1.15
- Loading branch information
Showing
2 changed files
with
72 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters