Thread starving? #14817

Closed
opened 2026-01-31 04:20:14 +00:00 by claunia · 3 comments
Owner

Originally created by @were on GitHub (Aug 8, 2021).

Windows Terminal version (or Windows build number)

1.9.1942.0

Other Software

WSL or SSH. Run on Linux. I did not try to replicate it on pure PowerShell but I think it should be very similar.

Steps to reproduce

Writing a code that dumps excessive logs to stdout.

int main() {
  while (true) {
    std::cout << "Hellow world" << std::endl;
  }
}

Expected Behavior

If I type Ctrl-C, it should stop immediately.

Actual Behavior

If need to type Ctrl-C repeatedly until it stops. It seems the thread that listens the keyboard signal is starving.
This issue is not happening in PowerShell terminal (I mean just run PowerShell from Start menu, not from Windows Terminal tab).

Originally created by @were on GitHub (Aug 8, 2021). ### Windows Terminal version (or Windows build number) 1.9.1942.0 ### Other Software WSL or SSH. Run on Linux. I did not try to replicate it on pure PowerShell but I think it should be very similar. ### Steps to reproduce Writing a code that dumps excessive logs to `stdout`. ```C int main() { while (true) { std::cout << "Hellow world" << std::endl; } } ``` ### Expected Behavior If I type `Ctrl-C`, it should stop immediately. ### Actual Behavior If need to type `Ctrl-C` repeatedly until it stops. It seems the thread that listens the keyboard signal is starving. This issue is not happening in PowerShell terminal (I mean just run PowerShell from Start menu, not from Windows Terminal tab).
claunia added the Resolution-Duplicate label 2026-01-31 04:20:14 +00:00
Author
Owner

@j4james commented on GitHub (Aug 8, 2021):

I think this might be related to issue #2141.

@j4james commented on GitHub (Aug 8, 2021): I think this might be related to issue #2141.
Author
Owner

@zadjii-msft commented on GitHub (Aug 9, 2021):

#2141 might be the root cause, but at the very least this is definitely a /dup of #6258. Thanks!

@zadjii-msft commented on GitHub (Aug 9, 2021): #2141 might be the root cause, but at the very least this is definitely a /dup of #6258. Thanks!
Author
Owner

@ghost commented on GitHub (Aug 9, 2021):

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 (Aug 9, 2021): 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#14817