#56183: fix: restore Ctrl+C handling for browser process on Windows
Merged
Description of Change
When an Electron app is launched detached on Windows, CreateProcess is called with CREATE_NEW_PROCESS_GROUP, which sets CONSOLE_IGNORE_CTRL_C in the process's PEB. That flag is inherited by every descendant process, causing child consoles and external terminals spawned from the app to ignore Ctrl+C.
Release Notes
Notes: Fixed an issue on Windows where child console processes spawned from an Electron app launched detached would ignore Ctrl+C.
Backports
Semver Impact
Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron