summaryrefslogtreecommitdiffhomepage
path: root/pkg/fdnotifier
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-08-08 19:06:30 +0000
committergVisor bot <gvisor-bot@google.com>2019-08-08 19:06:30 +0000
commit4f3f4cd15b73ab00d6423717cf9bfb2b8b709779 (patch)
treee8d9c9ca516dcc402e241e190b35aacf2b26568f /pkg/fdnotifier
parent553386081533b271f0c80e58d4a20f0f834e5348 (diff)
parent2e45d1696e41d9042164b1b05d0dcd39dd15dfce (diff)
Merge 2e45d169 (automated)
Diffstat (limited to 'pkg/fdnotifier')
-rw-r--r--pkg/fdnotifier/fdnotifier.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/fdnotifier/fdnotifier.go b/pkg/fdnotifier/fdnotifier.go
index 58529f99f..f4aae1953 100644
--- a/pkg/fdnotifier/fdnotifier.go
+++ b/pkg/fdnotifier/fdnotifier.go
@@ -25,6 +25,7 @@ import (
"sync"
"syscall"
+ "golang.org/x/sys/unix"
"gvisor.dev/gvisor/pkg/waiter"
)
@@ -72,7 +73,7 @@ func (n *notifier) waitFD(fd int32, fi *fdInfo, mask waiter.EventMask) error {
}
e := syscall.EpollEvent{
- Events: mask.ToLinux() | -syscall.EPOLLET,
+ Events: mask.ToLinux() | unix.EPOLLET,
Fd: fd,
}