[PR #18912] Eagerly persist on WM_ENDSESSION #31647

Open
opened 2026-01-31 09:48:37 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18912

State: closed
Merged: Yes


Once an application has returned from handling WM_ENDSESSION
the OS may kill the app at any point. This means we must
persist our state while inside the message handler.

Closes #17179

Validation Steps Performed

Honestly, none. It's a race condition in the first place.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18912 **State:** closed **Merged:** Yes --- Once an application has returned from handling `WM_ENDSESSION` the OS may kill the app at any point. This means we must persist our state while inside the message handler. Closes #17179 ## Validation Steps Performed Honestly, none. It's a race condition in the first place.
claunia added the pull-request label 2026-01-31 09:48:37 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31647