Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/libcrun/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1671,8 +1671,13 @@ run_process_with_stdin_timeout_envp (char *path, char **args, const char *cwd, i
ret = TEMP_FAILURE_RETRY (write (pipe_w, stdin, stdin_len));
if (UNLIKELY (ret < 0))
{
ret = crun_make_error (err, errno, "writing to pipe");
goto restore_sig_mask_and_exit;
/* Ignore EPIPE as the container process could have already
been terminated. */
if (errno != EPIPE)
{
ret = crun_make_error (err, errno, "writing to pipe");
goto restore_sig_mask_and_exit;
}
}

close_and_reset (&pipe_w);
Expand Down
Loading