Revender latest containerd/fifo

fixes build on arm64

Signed-off-by: Benjamin Elder <bentheelder@google.com>
This commit is contained in:
Benjamin Elder
2020-10-26 14:53:35 -07:00
parent f51d5f773d
commit 502d6adc22
2 changed files with 3 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ import (
"syscall"
"github.com/pkg/errors"
"golang.org/x/sys/unix"
)
type fifo struct {
@@ -48,7 +49,7 @@ func OpenFifoDup2(ctx context.Context, fn string, flag int, perm os.FileMode, fd
return nil, errors.Wrap(err, "fifo error")
}
if err := syscall.Dup2(int(f.file.Fd()), fd); err != nil {
if err := unix.Dup2(int(f.file.Fd()), fd); err != nil {
_ = f.Close()
return nil, errors.Wrap(err, "dup2 error")
}