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 bad file descriptor crashes #97

Merged
merged 5 commits into from
Nov 14, 2024

Conversation

kuhnroyal
Copy link
Contributor

Description

Explicitly close the pipe file handle after the data has been read.

Motivation and Context

Fixes #93
Fixes #76

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Explicitly close the pipe file handle after the data has been read.
@kuhnroyal
Copy link
Contributor Author

@simonbs Can you please check this and approve the workflow when you get a chance?

@simonbs simonbs enabled auto-merge (squash) November 14, 2024 13:02
@simonbs
Copy link
Contributor

simonbs commented Nov 14, 2024

Looks great! Thanks for contributing these changes! 🙏

@kuhnroyal
Copy link
Contributor Author

I am not very familiar with Swift, any tips how to handle potential error here as the force try is a lint error.

@simonbs
Copy link
Contributor

simonbs commented Nov 14, 2024

@kuhnroyal No worries. I've pushed some changes that should address it.

@simonbs simonbs merged commit 178cdd6 into shapehq:main Nov 14, 2024
1 check passed
@kuhnroyal
Copy link
Contributor Author

Thanks!

@kuhnroyal kuhnroyal deleted the fix/bad-file-descriptor branch November 14, 2024 13:26
@simonbs
Copy link
Contributor

simonbs commented Nov 14, 2024

This is included in 0.10.1 which was just published.

@simonbs simonbs mentioned this pull request Nov 15, 2024
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.

Sporadic crashes Random Runner Crashes After Upgrading to 0.8
3 participants