SIGBREAK signal from keyboard not propagated by Windows Terminal #8567

Closed
opened 2026-01-31 01:32:42 +00:00 by claunia · 2 comments
Owner

Originally created by @bozhodimitrov on GitHub (May 25, 2020).

Environment

Windows build number:
Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18363.0 Microsoft Windows NT 10.0.18363.0

Windows Terminal version (if applicable):
1.0.1401.0

PowerShell Core:
7.0.1

PowerShell: 
Name                           Value
----                           -----
PSVersion                      5.1.18362.752
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.752
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Steps to reproduce

  1. Open PowerShell or PowerShell Core in Windows Terminal
  2. Simulate blocking behavior with Python command:
    python -c "import time; import threading; t = threading.Thread(None, lambda: time.sleep(9999)); t.start(); t.join()"
  3. Press keyboard shortcut Ctrl+Break

Expected behavior

Terminated Python process

Actual behavior

Python process is still running

Additional notes:

I tried the same steps in pure PowerShell (powershell.exe)/PowerShell Core (pwsh.exe)/CMD (cmd.exe) - and the result is terminated Python process.

Originally created by @bozhodimitrov on GitHub (May 25, 2020). # Environment ```none Windows build number: Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0 Windows Terminal version (if applicable): 1.0.1401.0 PowerShell Core: 7.0.1 PowerShell: Name Value ---- ----- PSVersion 5.1.18362.752 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.18362.752 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 ``` # Steps to reproduce 1. Open PowerShell or PowerShell Core in Windows Terminal 2. Simulate blocking behavior with Python command: `python -c "import time; import threading; t = threading.Thread(None, lambda: time.sleep(9999)); t.start(); t.join()"` 3. Press keyboard shortcut `Ctrl+Break` # Expected behavior Terminated Python process # Actual behavior Python process is still running # Additional notes: I tried the same steps in pure PowerShell (powershell.exe)/PowerShell Core (pwsh.exe)/CMD (cmd.exe) - and the result is terminated Python process.
claunia added the Resolution-Duplicate label 2026-01-31 01:32:42 +00:00
Author
Owner

@zadjii-msft commented on GitHub (May 26, 2020):

Thanks for the report! This is actually already being tracked by another issue on our repo - please refer to #1119 for more discussion.

/dup #1119

@zadjii-msft commented on GitHub (May 26, 2020): Thanks for the report! This is actually already being tracked by another issue on our repo - please refer to #1119 for more discussion. /dup #1119
Author
Owner

@ghost commented on GitHub (May 26, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (May 26, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8567