Thread race condition on refreshing the screen and listening to keyboard signal? #5369

Open
opened 2026-01-31 00:11:46 +00:00 by claunia · 0 comments
Owner

Originally created by @were on GitHub (Dec 4, 2019).

Originally assigned to: @zadjii-msft on GitHub.

I use WSL Ubuntu 18.04.
I wrote a program that dumps tons of logs to stdout and I want to use <Ctrl-C> to terminate this program.

Then it does not work, it seems the main thread is too busy (refreshing the screen logs) to listen to <Ctrl-C> signal.

Originally created by @were on GitHub (Dec 4, 2019). Originally assigned to: @zadjii-msft on GitHub. I use WSL Ubuntu 18.04. I wrote a program that dumps tons of logs to stdout and I want to use `<Ctrl-C>` to terminate this program. Then it does not work, it seems the main thread is too busy (refreshing the screen logs) to listen to `<Ctrl-C>` signal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5369