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

Avoid IO exception #276

Merged
merged 3 commits into from Jul 22, 2021
Merged

Conversation

joseivanlopez
Copy link
Contributor

@joseivanlopez joseivanlopez commented Jul 21, 2021

Problem

When a signal is sent to YaST (e.g., when the parent terminal is killed), YaST tries writing a message to the standard error output. But stderr can be closed at that time, making YaST to raise an exception.

Solution

Avoid IO error by doing "exception swallowing" for Errno::EIO while writing to stderr.

See also yast/yast-control-center#51.

Testing

Manually tested.

@joseivanlopez joseivanlopez merged commit 5efaef2 into yast:master Jul 22, 2021
@yast-bot
Copy link
Contributor

✔️ Public Jenkins job #49 successfully finished
✔️ Created OBS submit request #907673

@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #42 successfully finished
✔️ Created IBS submit request #246665

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

Successfully merging this pull request may close these issues.

None yet

3 participants