summaryrefslogtreecommitdiffhomepage
path: root/pkg/log
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-03-03 18:43:27 +0000
committergVisor bot <gvisor-bot@google.com>2021-03-03 18:43:27 +0000
commitaae5455fe381c4cbc956f61c971284ee05c52dfc (patch)
tree2b1cb0233968680dcd0374f20ee826cf311bda95 /pkg/log
parente2599d556573b05eb3714c1e791fa29431dc3d3f (diff)
parenta9441aea2780da8c93da1c73da860219f98438de (diff)
Merge release-20210301.0-5-ga9441aea2 (automated)
Diffstat (limited to 'pkg/log')
-rw-r--r--pkg/log/log.go4
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
}