From c8b669fb0a58fe9cbd1e403a75f3ad2a5d6ab471 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 17 Apr 2020 14:20:41 +0200 Subject: [PATCH] container: do not write twice the error msg do not write twice the error message when -d is used. Closes: https://github.com/containers/crun/issues/335 Signed-off-by: Giuseppe Scrivano --- src/libcrun/container.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libcrun/container.c b/src/libcrun/container.c index ed409c16cf..cd2de529cd 100644 --- a/src/libcrun/container.c +++ b/src/libcrun/container.c @@ -1813,9 +1813,6 @@ libcrun_container_run (libcrun_context_t *context, libcrun_container_t *containe { TEMP_FAILURE_RETRY (write (pipefd1, &((*err)->status), sizeof ((*err)->status))); TEMP_FAILURE_RETRY (write (pipefd1, (*err)->msg, strlen ((*err)->msg) + 1)); - - crun_set_output_handler (log_write_to_stderr, NULL, false); - libcrun_fail_with_error ((*err)->status, "%s", (*err)->msg); } exit (ret); }