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

stdin closes on SIGWINCH on some systems #77

Closed
tenox7 opened this issue Mar 13, 2023 · 3 comments
Closed

stdin closes on SIGWINCH on some systems #77

tenox7 opened this issue Mar 13, 2023 · 3 comments

Comments

@tenox7
Copy link
Owner

tenox7 commented Mar 13, 2023

it's because of this:
9be5bea

likely scanf() gets interrupted by sigwinch and returns -1

@tenox7
Copy link
Owner Author

tenox7 commented Mar 13, 2023

likely check for EINTR or feof(stdin);

@tenox7
Copy link
Owner Author

tenox7 commented Mar 22, 2023

may be fixed, needs more testing

@tenox7
Copy link
Owner Author

tenox7 commented Mar 27, 2023

fixed by ignoring EINTR

@tenox7 tenox7 closed this as completed Mar 27, 2023
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