From 4da306e1e98afd964ea39cb2ed8c6d0ee4d5cadd Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Mon, 26 Oct 2020 09:05:47 -0700 Subject: [PATCH] Fix panic in shim not logged Fix #4274 Carry #4298 Signed-off-by: Maksym Pavlenko --- runtime/v2/shim/shim_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/v2/shim/shim_unix.go b/runtime/v2/shim/shim_unix.go index e6dc3e02f..355c7c8b8 100644 --- a/runtime/v2/shim/shim_unix.go +++ b/runtime/v2/shim/shim_unix.go @@ -90,5 +90,5 @@ func handleSignals(ctx context.Context, logger *logrus.Entry, signals chan os.Si } func openLog(ctx context.Context, _ string) (io.Writer, error) { - return fifo.OpenFifo(ctx, "log", unix.O_WRONLY, 0700) + return fifo.OpenFifoDup2(ctx, "log", unix.O_WRONLY, 0700, int(os.Stderr.Fd())) }