diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-07-30 18:09:41 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-07-30 18:09:41 +0000 |
commit | 3d4eebfac23658dcb2ae23de9f7ba2426383a111 (patch) | |
tree | 52ec95d2319e5897e7beb2a7738e02cdb9601fdd /pkg/unet | |
parent | 30b95562998aa74463b9cd75b4945b5c6c882f95 (diff) | |
parent | 1decf764718f66097ce5bbfe2cd14a883a4ef713 (diff) |
Merge 1decf764 (automated)
Diffstat (limited to 'pkg/unet')
-rw-r--r-- | pkg/unet/unet_unsafe.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/unet/unet_unsafe.go b/pkg/unet/unet_unsafe.go index 614448954..85ef46edf 100644 --- a/pkg/unet/unet_unsafe.go +++ b/pkg/unet/unet_unsafe.go @@ -16,7 +16,6 @@ package unet import ( "io" - "math" "sync/atomic" "syscall" "unsafe" @@ -53,7 +52,7 @@ func (s *Socket) wait(write bool) error { events[0].Events = unix.POLLOUT } - _, _, e := syscall.Syscall(syscall.SYS_POLL, uintptr(unsafe.Pointer(&events[0])), 2, uintptr(math.MaxUint64)) + _, _, e := syscall.Syscall6(syscall.SYS_PPOLL, uintptr(unsafe.Pointer(&events[0])), 2, 0, 0, 0, 0) if e == syscall.EINTR { continue } |