syscall.Errno(0x5) == syscall.EIO

Signed-off-by: Cory Bennett <cbennett@netflix.com>
v0.8
Cory Bennett 2020-10-19 21:28:39 +00:00
parent cb12a5642f
commit 74db85d357
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ func (w *runcExecutor) callWithIO(ctx context.Context, id, bundle string, proces
if errors.As(err, &ptmClosedError) { if errors.As(err, &ptmClosedError) {
if ptmClosedError.Op == "read" && if ptmClosedError.Op == "read" &&
ptmClosedError.Path == "/dev/ptmx" && ptmClosedError.Path == "/dev/ptmx" &&
ptmClosedError.Err == syscall.Errno(0x5) { ptmClosedError.Err == syscall.EIO {
return nil return nil
} }
} }