|
|
|
@ -1921,7 +1921,7 @@ static bool is_epoll_available() { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const grpc_event_engine_vtable *grpc_init_epollsig_linux(void) { |
|
|
|
|
const grpc_event_engine_vtable *grpc_init_epollsig_linux(bool explicit_request) { |
|
|
|
|
/* If use of signals is disabled, we cannot use epoll engine*/ |
|
|
|
|
if (is_grpc_wakeup_signal_initialized && grpc_wakeup_signal < 0) { |
|
|
|
|
return NULL; |
|
|
|
@ -1936,7 +1936,8 @@ const grpc_event_engine_vtable *grpc_init_epollsig_linux(void) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!is_grpc_wakeup_signal_initialized) { |
|
|
|
|
return NULL; |
|
|
|
|
if (explicit_request) grpc_use_signal(SIGRTMIN + 6);
|
|
|
|
|
else return NULL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fd_global_init(); |
|
|
|
@ -1958,7 +1959,7 @@ const grpc_event_engine_vtable *grpc_init_epollsig_linux(void) { |
|
|
|
|
#include "src/core/lib/iomgr/ev_posix.h" |
|
|
|
|
/* If GRPC_LINUX_EPOLL is not defined, it means epoll is not available. Return
|
|
|
|
|
* NULL */ |
|
|
|
|
const grpc_event_engine_vtable *grpc_init_epollsig_linux(void) { return NULL; } |
|
|
|
|
const grpc_event_engine_vtable *grpc_init_epollsig_linux(bool explicit_request) { return NULL; } |
|
|
|
|
#endif /* defined(GRPC_POSIX_SOCKET) */ |
|
|
|
|
|
|
|
|
|
void grpc_use_signal(int signum) {} |
|
|
|
|