Skip to content

Commit a46ddf4

Browse files
committedOct 10, 2018
Remove grpc_use_signal which is no longer relevant
1 parent 478fedb commit a46ddf4

File tree

5 files changed

+0
-16
lines changed

5 files changed

+0
-16
lines changed
 

‎grpc.def

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ EXPORTS
8181
grpc_channelz_get_socket
8282
grpc_insecure_channel_create_from_fd
8383
grpc_server_add_insecure_channel_from_fd
84-
grpc_use_signal
8584
grpc_auth_property_iterator_next
8685
grpc_auth_context_property_iterator
8786
grpc_auth_context_peer_identity

‎include/grpc/grpc_posix.h

-8
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ GRPCAPI grpc_channel* grpc_insecure_channel_create_from_fd(
5252
GRPCAPI void grpc_server_add_insecure_channel_from_fd(grpc_server* server,
5353
void* reserved, int fd);
5454

55-
/** GRPC Core POSIX library may internally use signals to optimize some work.
56-
The library uses (SIGRTMIN + 6) signal by default. Use this API to instruct
57-
the library to use a different signal i.e 'signum' instead.
58-
Note:
59-
- To prevent GRPC library from using any signals, pass a 'signum' of -1
60-
- This API is optional but if called, it MUST be called before grpc_init() */
61-
GRPCAPI void grpc_use_signal(int signum);
62-
6355
#ifdef __cplusplus
6456
}
6557
#endif

‎src/core/lib/iomgr/ev_posix.cc

-2
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,4 @@ void grpc_pollset_set_del_fd(grpc_pollset_set* pollset_set, grpc_fd* fd) {
395395
g_event_engine->pollset_set_del_fd(pollset_set, fd);
396396
}
397397

398-
void grpc_use_signal(int signum) {}
399-
400398
#endif // GRPC_POSIX_SOCKET_EV

‎src/ruby/ext/grpc/rb_grpc_imports.generated.c

-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ grpc_channelz_get_subchannel_type grpc_channelz_get_subchannel_import;
104104
grpc_channelz_get_socket_type grpc_channelz_get_socket_import;
105105
grpc_insecure_channel_create_from_fd_type grpc_insecure_channel_create_from_fd_import;
106106
grpc_server_add_insecure_channel_from_fd_type grpc_server_add_insecure_channel_from_fd_import;
107-
grpc_use_signal_type grpc_use_signal_import;
108107
grpc_auth_property_iterator_next_type grpc_auth_property_iterator_next_import;
109108
grpc_auth_context_property_iterator_type grpc_auth_context_property_iterator_import;
110109
grpc_auth_context_peer_identity_type grpc_auth_context_peer_identity_import;
@@ -362,7 +361,6 @@ void grpc_rb_load_imports(HMODULE library) {
362361
grpc_channelz_get_socket_import = (grpc_channelz_get_socket_type) GetProcAddress(library, "grpc_channelz_get_socket");
363362
grpc_insecure_channel_create_from_fd_import = (grpc_insecure_channel_create_from_fd_type) GetProcAddress(library, "grpc_insecure_channel_create_from_fd");
364363
grpc_server_add_insecure_channel_from_fd_import = (grpc_server_add_insecure_channel_from_fd_type) GetProcAddress(library, "grpc_server_add_insecure_channel_from_fd");
365-
grpc_use_signal_import = (grpc_use_signal_type) GetProcAddress(library, "grpc_use_signal");
366364
grpc_auth_property_iterator_next_import = (grpc_auth_property_iterator_next_type) GetProcAddress(library, "grpc_auth_property_iterator_next");
367365
grpc_auth_context_property_iterator_import = (grpc_auth_context_property_iterator_type) GetProcAddress(library, "grpc_auth_context_property_iterator");
368366
grpc_auth_context_peer_identity_import = (grpc_auth_context_peer_identity_type) GetProcAddress(library, "grpc_auth_context_peer_identity");

‎src/ruby/ext/grpc/rb_grpc_imports.generated.h

-3
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,6 @@ extern grpc_insecure_channel_create_from_fd_type grpc_insecure_channel_create_fr
287287
typedef void(*grpc_server_add_insecure_channel_from_fd_type)(grpc_server* server, void* reserved, int fd);
288288
extern grpc_server_add_insecure_channel_from_fd_type grpc_server_add_insecure_channel_from_fd_import;
289289
#define grpc_server_add_insecure_channel_from_fd grpc_server_add_insecure_channel_from_fd_import
290-
typedef void(*grpc_use_signal_type)(int signum);
291-
extern grpc_use_signal_type grpc_use_signal_import;
292-
#define grpc_use_signal grpc_use_signal_import
293290
typedef const grpc_auth_property*(*grpc_auth_property_iterator_next_type)(grpc_auth_property_iterator* it);
294291
extern grpc_auth_property_iterator_next_type grpc_auth_property_iterator_next_import;
295292
#define grpc_auth_property_iterator_next grpc_auth_property_iterator_next_import

0 commit comments

Comments
 (0)
Please sign in to comment.