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

files, sockets: ignore cleanup exceptions on =destroy #78

Merged
merged 2 commits into from
Mar 18, 2024
Merged

Conversation

alaviss
Copy link
Owner

@alaviss alaviss commented Mar 18, 2024

In these situations there are only two reasons why cleaning up fails:

  • The FD is invalid
  • There is something wrong with the OS

The first case is already covered by Defects, which are not ignored, and we can't do anything (nor can the caller) for the second case, so just ignore those.

This is brought on by nimskull 0.1.0-dev.21268, which disallows raise in hooks since that was undefined behavior.

In these situations there are only two reasons why cleaning up fails:

* The FD is invalid
* There is something wrong with the OS

The first case is already covered by Defects, which are not ignored,
and we can't do anything (nor can the caller) for the latter, so just
ignore those.

This is brought on by nimskull 0.1.0-dev.21268, which disallows raise
in hooks since that was undefined behavior.
@alaviss alaviss enabled auto-merge March 18, 2024 03:40
@alaviss alaviss changed the title files: ignore cleanup exceptions on =destroy files, sockets: ignore cleanup exceptions on =destroy Mar 18, 2024
For similar reasons to 5409323, any
catchable exception here is benign.
@alaviss alaviss merged commit c17caa7 into master Mar 18, 2024
14 checks passed
@alaviss alaviss deleted the fix-hooks branch August 28, 2024 22:24
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.

1 participant