diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2016-09-29 11:16:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-29 11:16:29 -0700 |
commit | 66306c2ae80fb4298c8dbf8de619719bc2bfe925 (patch) | |
tree | ceb5f6ed357574e39d1de9b0f51b9c7b514a3c5b | |
parent | d914591e95ac38c6f178969a46b02e507ed7641a (diff) | |
parent | a6136157c2f1e4b37ce8c91cdc0b6fa55fc3c05f (diff) |
Merge pull request #8224 from sreecha/grpc_signal
Use SIGMINRT + 6 as the default signal for gRPC epoll engine (instead of SIGMINRT + 2)
-rw-r--r-- | include/grpc/grpc_posix.h | 2 | ||||
-rw-r--r-- | src/core/lib/iomgr/ev_epoll_linux.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/grpc/grpc_posix.h b/include/grpc/grpc_posix.h index 5e89ae3b1e..6d77f0fb82 100644 --- a/include/grpc/grpc_posix.h +++ b/include/grpc/grpc_posix.h @@ -64,7 +64,7 @@ GRPCAPI void grpc_server_add_insecure_channel_from_fd(grpc_server *server, int fd); /** GRPC Core POSIX library may internally use signals to optimize some work. - The library uses (SIGRTMIN + 2) signal by default. Use this API to instruct + The library uses (SIGRTMIN + 6) signal by default. Use this API to instruct the library to use a different signal i.e 'signum' instead. Note: - To prevent GRPC library from using any signals, pass a 'signum' of -1 diff --git a/src/core/lib/iomgr/ev_epoll_linux.c b/src/core/lib/iomgr/ev_epoll_linux.c index 740920d760..ab77ebc78b 100644 --- a/src/core/lib/iomgr/ev_epoll_linux.c +++ b/src/core/lib/iomgr/ev_epoll_linux.c @@ -1897,7 +1897,7 @@ const grpc_event_engine_vtable *grpc_init_epoll_linux(void) { } if (!is_grpc_wakeup_signal_initialized) { - grpc_use_signal(SIGRTMIN + 2); + grpc_use_signal(SIGRTMIN + 6); } fd_global_init(); |