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())) }