diff options
author | 2018-08-10 10:13:36 -0700 | |
---|---|---|
committer | 2018-08-22 13:07:22 -0700 | |
commit | b59d8674d24d9b40d8d8b2b40f2be0118ff524d2 (patch) | |
tree | 9bff38c639bff0e61f0f2142de72f4b0bbf8655a /src/core | |
parent | 2cec9c5344014db548448bd7fbbe04e7c33635be (diff) |
Python post-fork handler: exit if grpc shutdown fails
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/iomgr/fork_posix.cc | 2 | ||||
-rw-r--r-- | src/core/lib/surface/init.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/fork_posix.cc b/src/core/lib/iomgr/fork_posix.cc index a5b61fb4ce..ac85c81de2 100644 --- a/src/core/lib/iomgr/fork_posix.cc +++ b/src/core/lib/iomgr/fork_posix.cc @@ -25,6 +25,7 @@ #include <string.h> #include <grpc/fork.h> +#include <grpc/grpc.h> #include <grpc/support/log.h> #include "src/core/lib/gpr/env.h" @@ -34,7 +35,6 @@ #include "src/core/lib/iomgr/executor.h" #include "src/core/lib/iomgr/timer_manager.h" #include "src/core/lib/iomgr/wakeup_fd_posix.h" -#include "src/core/lib/surface/init.h" /* * NOTE: FORKING IS NOT GENERALLY SUPPORTED, THIS IS ONLY INTENDED TO WORK diff --git a/src/core/lib/surface/init.h b/src/core/lib/surface/init.h index 9353208332..193f51447d 100644 --- a/src/core/lib/surface/init.h +++ b/src/core/lib/surface/init.h @@ -22,6 +22,5 @@ void grpc_register_security_filters(void); void grpc_security_pre_init(void); void grpc_security_init(void); -int grpc_is_initialized(void); #endif /* GRPC_CORE_LIB_SURFACE_INIT_H */ |