Merge 2e45d169 (automated)

This commit is contained in:
gVisor bot 2019-08-08 19:06:30 +00:00
commit 4f3f4cd15b
5 changed files with 13 additions and 11 deletions

View File

@ -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,
}

View File

@ -1,12 +1,12 @@
package kernel
import (
"fmt"
"reflect"
"strings"
"unsafe"
"fmt"
"gvisor.dev/gvisor/third_party/gvsync"
"reflect"
"strings"
)
// SeqAtomicLoad returns a copy of *ptr, ensuring that the read does not race

View File

@ -1,14 +1,14 @@
package ring0
import (
"gvisor.dev/gvisor/pkg/cpuid"
"io"
"reflect"
"syscall"
"fmt"
"gvisor.dev/gvisor/pkg/cpuid"
"gvisor.dev/gvisor/pkg/sentry/platform/ring0/pagetables"
"gvisor.dev/gvisor/pkg/sentry/usermem"
"io"
"reflect"
)
var (

View File

@ -20,6 +20,7 @@ import (
"sync"
"syscall"
"golang.org/x/sys/unix"
"gvisor.dev/gvisor/pkg/sentry/socket/rpcinet/conn"
pb "gvisor.dev/gvisor/pkg/sentry/socket/rpcinet/syscall_rpc_go_proto"
"gvisor.dev/gvisor/pkg/waiter"
@ -76,7 +77,7 @@ func (n *Notifier) waitFD(fd uint32, fi *fdInfo, mask waiter.EventMask) error {
}
e := pb.EpollEvent{
Events: mask.ToLinux() | -syscall.EPOLLET,
Events: mask.ToLinux() | unix.EPOLLET,
Fd: fd,
}

View File

@ -1,12 +1,12 @@
package time
import (
"fmt"
"reflect"
"strings"
"unsafe"
"fmt"
"gvisor.dev/gvisor/third_party/gvsync"
"reflect"
"strings"
)
// SeqAtomicLoad returns a copy of *ptr, ensuring that the read does not race