Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGWINCH generates SIGINT #212

Open
rendarz opened this issue Jun 2, 2024 · 0 comments
Open

SIGWINCH generates SIGINT #212

rendarz opened this issue Jun 2, 2024 · 0 comments

Comments

@rendarz
Copy link

rendarz commented Jun 2, 2024

If we look at the code located here https://github.com/console-rs/console/blob/master/src/unix_term.rs#L325
you should realize that EINTR can be generated also by other signals than SIGINT.
In my application, if I resize the terminal, a SIGWINCH signal is thrown, but your crate translates that SIGWINCH (which generates an EINTR) to a SIGINT, so you're throwing an unwanted SIGINT to the "outselves", causing my application to brutally exit (since it received a SIGINT).
PLEASE FIX THIS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant