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

Closed
opened 2026-01-31 00:11:54 +00:00 by claunia · 3 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.
Author
Owner

@zadjii-msft commented on GitHub (Apr 13, 2020):

@were could you confirm for me that what you're seeing is basically the same thing described in #3169? That issue is also basically "I try some input and there's a delay before the Terminal reacts to it".

What applications are you all using in your stack when this repros? ssh? tmux? screen? less?

Are you still seeing this in 0.10?

EDIT: @ future me: #1311 specifically mentions being under CPU load. Lets try that.

@zadjii-msft commented on GitHub (Apr 13, 2020): @were could you confirm for me that what you're seeing is basically the same thing described in #3169? That issue is also basically "I try some input and there's a delay before the Terminal reacts to it". What applications are you all using in your stack when this repros? `ssh`? `tmux`? `screen`? `less`? Are you still seeing this in 0.10? EDIT: @ future me: #1311 specifically mentions being under CPU load. Lets try that.
Author
Owner

@were commented on GitHub (Apr 16, 2020):

I think it is good now. I no longer face this problem in the current version. I can close it. Thank you!

@were commented on GitHub (Apr 16, 2020): I think it is good now. I no longer face this problem in the current version. I can close it. Thank you!
Author
Owner

@zadjii-msft commented on GitHub (Apr 16, 2020):

Glad to hear it! Thanks for following up ☺️

@zadjii-msft commented on GitHub (Apr 16, 2020): Glad to hear it! Thanks for following up ☺️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5373