diff options
Diffstat (limited to 'pkg/log')
-rw-r--r-- | pkg/log/log.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/log/log.go b/pkg/log/log.go index 2e3408357..d39af3bf4 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -38,9 +38,9 @@ import ( "os" "runtime" "sync/atomic" - "syscall" "time" + "golang.org/x/sys/unix" "gvisor.dev/gvisor/pkg/linewriter" "gvisor.dev/gvisor/pkg/sync" ) @@ -105,7 +105,7 @@ func (l *Writer) Write(data []byte) (int, error) { n += w // Is it a non-blocking socket? - if pathErr, ok := err.(*os.PathError); ok && pathErr.Err == syscall.EAGAIN { + if pathErr, ok := err.(*os.PathError); ok && pathErr.Err == unix.EAGAIN { runtime.Gosched() continue } |