aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/is_epollexclusive_available.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-09-20 08:28:28 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-09-20 08:28:28 -0700
commit531b251abcb6085a4174748376edc048742dd35b (patch)
treec135c91311c795bd066f626994cf88da6e08be4f /src/core/lib/iomgr/is_epollexclusive_available.c
parent2c48148ebdcdfb62bc24c387f29d986606dc1bcd (diff)
parenteb44079fcd452e2f94066ffe0944c1390987b45e (diff)
Merge github.com:grpc/grpc into flowctlN
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) {