diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-10-19 16:53:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-10-19 16:53:13 +0000 |
commit | 29849c91e41478ce7c86d5fe4f1582179b845ef8 (patch) | |
tree | 99ea1098649c175fe24c94394f1bd520f6c18770 /libgo/go | |
parent | b70f0b0cc3134537d56b2115289cb94c3eb7a4e4 (diff) | |
download | gcc-29849c91e41478ce7c86d5fe4f1582179b845ef8.zip gcc-29849c91e41478ce7c86d5fe4f1582179b845ef8.tar.gz gcc-29849c91e41478ce7c86d5fe4f1582179b845ef8.tar.bz2 |
runtime, syscall: force EPOLLET to be positive
The C definition is 1U << 31. Reportedly on some systems GCC's
-fgo-dump-spec can print this as -2147483648.
Reviewed-on: https://go-review.googlesource.com/31448
From-SVN: r241347
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/runtime/netpoll_epoll.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/runtime/netpoll_epoll.go b/libgo/go/runtime/netpoll_epoll.go index 777150e..247692e 100644 --- a/libgo/go/runtime/netpoll_epoll.go +++ b/libgo/go/runtime/netpoll_epoll.go @@ -49,7 +49,7 @@ func netpollinit() { func netpollopen(fd uintptr, pd *pollDesc) int32 { var ev epollevent - ev.events = _EPOLLIN | _EPOLLOUT | _EPOLLRDHUP | _EPOLLET + ev.events = _EPOLLIN | _EPOLLOUT | _EPOLLRDHUP | _EPOLLETpos *(**pollDesc)(unsafe.Pointer(&ev.data)) = pd if epollctl(epfd, _EPOLL_CTL_ADD, int32(fd), &ev) < 0 { return int32(errno()) |