Skip to content

Commit 4da306e

Browse files
committed
Fix panic in shim not logged
Fix #4274 Carry #4298 Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent 5afc4b4 commit 4da306e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/v2/shim/shim_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ func handleSignals(ctx context.Context, logger *logrus.Entry, signals chan os.Si
9090
}
9191

9292
func openLog(ctx context.Context, _ string) (io.Writer, error) {
93-
return fifo.OpenFifo(ctx, "log", unix.O_WRONLY, 0700)
93+
return fifo.OpenFifoDup2(ctx, "log", unix.O_WRONLY, 0700, int(os.Stderr.Fd()))
9494
}

0 commit comments

Comments
 (0)