diff options
author | 2016-06-09 17:08:50 -0700 | |
---|---|---|
committer | 2016-06-09 17:08:50 -0700 | |
commit | c7be7c688829281b543428ec22029d4d09bd2a9c (patch) | |
tree | 6e364b02d9e779c07f3baa5ec284c11b812f9d6a /include | |
parent | 877dc0cc4930ce799a2ee5c4548b0cbeb38477bf (diff) |
Add an API at the core level to disable signals or use a different
signal number
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/grpc_posix.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc/grpc_posix.h b/include/grpc/grpc_posix.h index 9742b83374..5e89ae3b1e 100644 --- a/include/grpc/grpc_posix.h +++ b/include/grpc/grpc_posix.h @@ -63,6 +63,14 @@ GRPCAPI void grpc_server_add_insecure_channel_from_fd(grpc_server *server, grpc_completion_queue *cq, 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 to use a different signal i.e 'signum' instead. + Note: + - To prevent GRPC library from using any signals, pass a 'signum' of -1 + - This API is optional but if called, it MUST be called before grpc_init() */ +GRPCAPI void grpc_use_signal(int signum); + #ifdef __cplusplus } #endif |