-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix startup race of resizing ConPTY (#10449)
Fix startup race of resizing ConPTY - Depending on what the timing and ordering is of the message coming in from the signal thread, it may be applied to the startup structure after the I/O thread has begun initializing the console buffer structures but before it has signaled that it is done and the signal thread is ready to make changes directly. This likely happens because the end of the I/O thread setup has a weird unlock/lock jog for the input thread and the signal thread might have been scheduled in the middle of it. - My resolution here is to ensure that the signal thread just keeps storing the latest resize message until it is told that everything is initialized. Whomever comes in to tell the signal thread this information (under lock) will pickup and run the resize if one came in before everything was ready. This should resolve the race. ## Validation Steps Performed - o-sdn-o confirms this resolves their issue Closes #10400
- Loading branch information
Showing
4 changed files
with
42 additions
and
65 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
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