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

Fixed podman call dead lock #55

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Fixed podman call dead lock #55

merged 2 commits into from
Dec 13, 2024

Conversation

schaefi
Copy link
Contributor

@schaefi schaefi commented Dec 12, 2024

When calling the flake and stdout/stderr gets redirected into a pipe like flake | grep ... | cut ... the pilot binary runs in a dead lock because there is no reader/writer to feed the pipe from the child process (podman) executed via the pilot. This commit fixes it by making sure all data from the child gets read first and then passed along to stdout/stderr of the caller.

When calling the flake and stdout/stderr gets redirected into
a pipe like `flake | grep ... | cut ...` the pilot binary runs
in a dead lock because there is no reader/writer to feed the
pipe from the child process (podman) executed via the pilot.
This commit fixes it by making sure all data from the child
gets read first and then passed along to stdout/stderr of the
caller.
@schaefi schaefi requested a review from rjschwei December 12, 2024 14:28
@schaefi schaefi self-assigned this Dec 12, 2024
@schaefi schaefi merged commit 1f7c213 into main Dec 13, 2024
7 checks passed
@schaefi schaefi deleted the fix_blocking_io_buffer branch December 13, 2024 09:04
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.

2 participants