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 on blocking I/O #659

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Handle EINTR on blocking I/O #659

merged 2 commits into from
Oct 8, 2024

Conversation

smcv
Copy link
Collaborator

@smcv smcv commented Oct 3, 2024

  • utils: Move TEMP_FAILURE_RETRY reimplementation here

    This will allow it to be used in more places.

    Helps: Handle EINTR #657

  • Handle EINTR when doing I/O on files or sockets

    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: Handle EINTR #657

cc @refi64 @mcatanzaro

@smcv smcv marked this pull request as ready for review October 3, 2024 16:54
smcv added 2 commits October 3, 2024 17:55
This will allow it to be used in more places.

Helps: containers#657
Signed-off-by: Simon McVittie <[email protected]>
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]>
@swick
Copy link
Contributor

swick commented Oct 7, 2024

Also looks fine

@smcv smcv merged commit 5dab8b8 into containers:main Oct 8, 2024
4 checks passed
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.

Handle EINTR
2 participants