diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/log/BUILD | 1 | ||||
-rw-r--r-- | pkg/log/log.go | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/pkg/log/BUILD b/pkg/log/BUILD index 23ef7ea8d..3ed6aba5c 100644 --- a/pkg/log/BUILD +++ b/pkg/log/BUILD @@ -18,7 +18,6 @@ go_library( deps = [ "//pkg/linewriter", "//pkg/sync", - "@org_golang_x_sys//unix:go_default_library", ], ) 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 } |