diff options
author | 2018-08-10 10:13:36 -0700 | |
---|---|---|
committer | 2018-08-22 13:07:22 -0700 | |
commit | b59d8674d24d9b40d8d8b2b40f2be0118ff524d2 (patch) | |
tree | 9bff38c639bff0e61f0f2142de72f4b0bbf8655a /include/grpc | |
parent | 2cec9c5344014db548448bd7fbbe04e7c33635be (diff) |
Python post-fork handler: exit if grpc shutdown fails
Diffstat (limited to 'include/grpc')
-rw-r--r-- | include/grpc/grpc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h index 897b89851a..4e50cd0bac 100644 --- a/include/grpc/grpc.h +++ b/include/grpc/grpc.h @@ -79,6 +79,12 @@ GRPCAPI void grpc_init(void); destroyed. */ GRPCAPI void grpc_shutdown(void); +/** EXPERIMENTAL. Returns 1 if the grpc library has been initialized. + TODO(ericgribkoff) Decide if this should be promoted to non-experimental as + part of stabilizing the fork support API, as tracked in + https://github.com/grpc/grpc/issues/15334 */ +GRPCAPI int grpc_is_initialized(void); + /** Return a string representing the current version of grpc */ GRPCAPI const char* grpc_version_string(void); |