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

Handle EINTR #657

Closed
mcatanzaro opened this issue Sep 27, 2024 · 0 comments · Fixed by #659
Closed

Handle EINTR #657

mcatanzaro opened this issue Sep 27, 2024 · 0 comments · Fixed by #659

Comments

@mcatanzaro
Copy link

In WebKit/WebKit#34268 we discovered that some code I copied from bubblewrap is not properly handling EINTR, specifically the calls to sendmsg() and recvmsg() in utils.c.

I had considered submitting a quick pull request, but quickly discovered these aren't the only places. E.g. the call to openat() in load_file_at() in utils.c has the same problem. Unfortunately there's no easy way to check a large codebase for places with missing error handling.

smcv added a commit to smcv/bubblewrap that referenced this issue Oct 3, 2024
This will allow it to be used in more places.

Helps: containers#657
Signed-off-by: Simon McVittie <[email protected]>
smcv added a commit to smcv/bubblewrap that referenced this issue Oct 3, 2024
If a blocking operation is interrupted by a signal, including SIGCHLD,
various things can fail with EINTR. This is not a "real" error and can
result in spurious failures.

Resolves: containers#657
Signed-off-by: Simon McVittie <[email protected]>
smcv added a commit to smcv/bubblewrap that referenced this issue Oct 3, 2024
This will allow it to be used in more places.

Helps: containers#657
Signed-off-by: Simon McVittie <[email protected]>
@smcv smcv closed this as completed in #659 Oct 8, 2024
@smcv smcv closed this as completed in 0c96465 Oct 8, 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 a pull request may close this issue.

1 participant