aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/is_epollexclusive_available.c
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@google.com>2017-09-20 11:41:46 -0700
committerGravatar Sree Kuchibhotla <sreek@google.com>2017-09-20 11:41:46 -0700
commita27764e5939fd4ca866d4fd453448cc6d4b87e06 (patch)
treee69fc12aa9be99f98627ea12cdcb69172c52eb43 /src/core/lib/iomgr/is_epollexclusive_available.c
parente16329dd5f2be074ce72564666e83a33e34e468c (diff)
parent31aea7ee3a2c188d805cdf0b7be6ae446720bc43 (diff)
Merge branch 'master' into debug-timers
Diffstat (limited to 'src/core/lib/iomgr/is_epollexclusive_available.c')
-rw-r--r--src/core/lib/iomgr/is_epollexclusive_available.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/lib/iomgr/is_epollexclusive_available.c b/src/core/lib/iomgr/is_epollexclusive_available.c
index e8a7d4d52c..d08844c0df 100644
--- a/src/core/lib/iomgr/is_epollexclusive_available.c
+++ b/src/core/lib/iomgr/is_epollexclusive_available.c
@@ -57,12 +57,12 @@ bool grpc_is_epollexclusive_available(void) {
close(fd);
return false;
}
- struct epoll_event ev = {
- /* choose events that should cause an error on
- EPOLLEXCLUSIVE enabled kernels - specifically the combination of
- EPOLLONESHOT and EPOLLEXCLUSIVE */
- .events = (uint32_t)(EPOLLET | EPOLLIN | EPOLLEXCLUSIVE | EPOLLONESHOT),
- .data.ptr = NULL};
+ struct epoll_event ev;
+ /* choose events that should cause an error on
+ EPOLLEXCLUSIVE enabled kernels - specifically the combination of
+ EPOLLONESHOT and EPOLLEXCLUSIVE */
+ ev.events = (uint32_t)(EPOLLET | EPOLLIN | EPOLLEXCLUSIVE | EPOLLONESHOT);
+ ev.data.ptr = NULL;
if (epoll_ctl(fd, EPOLL_CTL_ADD, evfd, &ev) != 0) {
if (errno != EINVAL) {
if (!logged_why_not) {