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

Fix crash on terminal resize during download #987

Merged
merged 2 commits into from
Jan 7, 2022

Conversation

dmach
Copy link
Contributor

@dmach dmach commented Dec 27, 2021

Resolves #972

@dmach dmach added this to In progress in Networking via automation Dec 28, 2021
@marcus-h
Copy link
Member

marcus-h commented Jan 2, 2022 via email

@dmach
Copy link
Contributor Author

dmach commented Jan 3, 2022

@marcus-h all right, after reading your comment I've started digging in how signals work in Python and realized, that there could be a way simpler patch. Please check the new version and let me know if you have any concerns.

@marcus-h
Copy link
Member

marcus-h commented Jan 6, 2022 via email

In normal mode, SIGWINCH is handled by ProgressBar.
In quiet mode, there's no SIGWINCH handler at all.
@dmach
Copy link
Contributor Author

dmach commented Jan 7, 2022

I've removed the useless SIGWINCH stuff in another commit in this PR.
Just in case, I've manually tested that osc works in quiet mode as expected (a different code path than the default SIGWINCH handling).

@marcus-h marcus-h merged commit dd3908c into openSUSE:master Jan 7, 2022
Networking automation moved this from In progress to Done Jan 7, 2022
@marcus-h
Copy link
Member

marcus-h commented Jan 7, 2022 via email

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

Successfully merging this pull request may close these issues.

Resize of terminal while osc getbinaries makes osc crash
2 participants