Fix hang on fork when the security context is destroyed in the Executor (#31969)

Attempting to create an ExecCtx while forking will hang forever. In the
apparently rare case that the transport is destroyed in an Executor
thread, this blocks indefinitely in the pre-fork handlers.
pull/31035/head^2
AJ Heller 2 years ago committed by GitHub
parent 5664d6ee6b
commit 50d4f22069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/core/lib/security/context/security_context.cc

@ -112,7 +112,6 @@ grpc_client_security_context* grpc_client_security_context_create(
} }
void grpc_client_security_context_destroy(void* ctx) { void grpc_client_security_context_destroy(void* ctx) {
grpc_core::ExecCtx exec_ctx;
grpc_client_security_context* c = grpc_client_security_context* c =
static_cast<grpc_client_security_context*>(ctx); static_cast<grpc_client_security_context*>(ctx);
c->~grpc_client_security_context(); c->~grpc_client_security_context();

Loading…
Cancel
Save