Skip to content

Commit

Permalink
Merge pull request grpc#8224 from sreecha/grpc_signal
Browse files Browse the repository at this point in the history
Use SIGMINRT + 6 as the default signal for gRPC epoll engine (instead of SIGMINRT + 2)
  • Loading branch information
nicolasnoble authored Sep 29, 2016
2 parents d914591 + a613615 commit 66306c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/grpc/grpc_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/lib/iomgr/ev_epoll_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 66306c2

Please sign in to comment.