diff --git a/containerd-shim-v2/stream.go b/containerd-shim-v2/stream.go index c64060ba88..e8c3b5c66f 100644 --- a/containerd-shim-v2/stream.go +++ b/containerd-shim-v2/stream.go @@ -56,7 +56,7 @@ func newTtyIO(ctx context.Context, stdin, stdout, stderr string, console bool) ( var err error if stdin != "" { - in, err = fifo.OpenFifo(ctx, stdin, syscall.O_RDONLY, 0) + in, err = fifo.OpenFifo(ctx, stdin, syscall.O_RDONLY|syscall.O_NONBLOCK, 0) if err != nil { return nil, err }