diff options
author | Craig Tiller <ctiller@google.com> | 2017-09-01 09:42:40 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-09-01 09:42:40 -0700 |
commit | 40f9c73d8a65e0cc1dd3a763b7e0c67d333cdaf2 (patch) | |
tree | 025050f08a52ce2b6170da9ffdd593fc47d78550 /src | |
parent | 890f542498a8af4c05f22e42d818f3b0eeafaea8 (diff) | |
parent | c928cfee2b94a99747f97ff8c5fb09277a1352b7 (diff) |
Merge github.com:grpc/grpc into stats_histo
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lib/iomgr/ev_epoll1_linux.c | 4 | ||||
-rw-r--r-- | src/core/lib/iomgr/ev_epollsig_linux.c | 4 | ||||
-rw-r--r-- | src/core/lib/iomgr/ev_posix.c | 2 | ||||
-rw-r--r-- | src/php/ext/grpc/php_grpc.c | 4 |
4 files changed, 2 insertions, 12 deletions
diff --git a/src/core/lib/iomgr/ev_epoll1_linux.c b/src/core/lib/iomgr/ev_epoll1_linux.c index 47ad2f45c3..7f053fa728 100644 --- a/src/core/lib/iomgr/ev_epoll1_linux.c +++ b/src/core/lib/iomgr/ev_epoll1_linux.c @@ -1194,10 +1194,6 @@ static const grpc_event_engine_vtable vtable = { * Create epoll_fd (epoll_set_init() takes care of that) to make sure epoll * support is available */ const grpc_event_engine_vtable *grpc_init_epoll1_linux(bool explicit_request) { - if (!explicit_request) { - return NULL; - } - if (!grpc_has_wakeup_fd()) { return NULL; } diff --git a/src/core/lib/iomgr/ev_epollsig_linux.c b/src/core/lib/iomgr/ev_epollsig_linux.c index 16f2d21237..59c7cdc285 100644 --- a/src/core/lib/iomgr/ev_epollsig_linux.c +++ b/src/core/lib/iomgr/ev_epollsig_linux.c @@ -1730,9 +1730,7 @@ const grpc_event_engine_vtable *grpc_init_epollsig_linux( } if (!is_grpc_wakeup_signal_initialized) { - /* TODO(ctiller): when other epoll engines are ready, remove the true || to - * force this to be explitly chosen if needed */ - if (true || explicit_request) { + if (explicit_request) { grpc_use_signal(SIGRTMIN + 6); } else { return NULL; diff --git a/src/core/lib/iomgr/ev_posix.c b/src/core/lib/iomgr/ev_posix.c index 91f8cd5482..424b40e425 100644 --- a/src/core/lib/iomgr/ev_posix.c +++ b/src/core/lib/iomgr/ev_posix.c @@ -64,8 +64,8 @@ typedef struct { } event_engine_factory; static const event_engine_factory g_factories[] = { - {"epollsig", grpc_init_epollsig_linux}, {"epoll1", grpc_init_epoll1_linux}, + {"epollsig", grpc_init_epollsig_linux}, {"epoll-threadpool", grpc_init_epoll_thread_pool_linux}, {"epoll-limited", grpc_init_epoll_limited_pollers_linux}, {"poll", grpc_init_poll_posix}, diff --git a/src/php/ext/grpc/php_grpc.c b/src/php/ext/grpc/php_grpc.c index 4ed56de993..0f2c5b8114 100644 --- a/src/php/ext/grpc/php_grpc.c +++ b/src/php/ext/grpc/php_grpc.c @@ -49,9 +49,7 @@ const zend_function_entry grpc_functions[] = { /* {{{ grpc_module_entry */ zend_module_entry grpc_module_entry = { -#if ZEND_MODULE_API_NO >= 20010901 STANDARD_MODULE_HEADER, -#endif "grpc", grpc_functions, PHP_MINIT(grpc), @@ -59,9 +57,7 @@ zend_module_entry grpc_module_entry = { PHP_RINIT(grpc), NULL, PHP_MINFO(grpc), -#if ZEND_MODULE_API_NO >= 20010901 PHP_GRPC_VERSION, -#endif PHP_MODULE_GLOBALS(grpc), PHP_GINIT(grpc), NULL, |