From 50d4f220694b43ab35e9b79ab1ffdebac8537543 Mon Sep 17 00:00:00 2001 From: AJ Heller Date: Thu, 22 Dec 2022 13:00:29 -0800 Subject: [PATCH] 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. --- src/core/lib/security/context/security_context.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/lib/security/context/security_context.cc b/src/core/lib/security/context/security_context.cc index 4f62a7df54c..54405cd4278 100644 --- a/src/core/lib/security/context/security_context.cc +++ b/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) { - grpc_core::ExecCtx exec_ctx; grpc_client_security_context* c = static_cast(ctx); c->~grpc_client_security_context();