Repository navigation
fix(extractinitrd): retry waitpid on EINTR in wait_for_child - #2819
Merged
Merged
Conversation
If a signal is caught while waiting for a child process, waitpid(2) can fail with EINTR. Wrap waitpid() in a retry loop to prevent spurious child wait failures.
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the change to retry waitpid() when interrupted by a signal.
No open issues 🎉
What changed in this PR
This PR prevents spurious child-wait failures in extractinitrd when a signal interrupts waitpid().
Changes:
- Retry
waitpid()when it fails withEINTR. - Preserve existing failure handling for other wait errors.
| File | Description |
|---|---|
src/extractinitrd/extractinitrd.c |
Add an interruption retry loop in wait_for_child(). |
Review effort: Balanced
devkontrol
approved these changes
Nov 6, 2026
Conan-Kudo
enabled auto-merge (rebase)
November 14, 2026 09:11
Conan-Kudo
approved these changes
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If a signal is caught while waiting for a child process, waitpid(2) can fail with EINTR. Wrap waitpid() in a retry loop to prevent spurious child wait failures.
Checklist