diff options
-rw-r--r-- | pkg/log/log.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/log/log.go b/pkg/log/log.go index d39af3bf4..073cf6238 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -40,7 +40,6 @@ import ( "sync/atomic" "time" - "golang.org/x/sys/unix" "gvisor.dev/gvisor/pkg/linewriter" "gvisor.dev/gvisor/pkg/sync" ) @@ -105,7 +104,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 == unix.EAGAIN { + if pathErr, ok := err.(*os.PathError); ok && pathErr.Timeout() { runtime.Gosched() continue } |