|
|
|
@ -114,7 +114,8 @@ static void session_shutdown_cb(grpc_exec_ctx *exec_ctx, void *arg, /*session */ |
|
|
|
|
bool success) { |
|
|
|
|
session *se = arg; |
|
|
|
|
server *sv = se->sv; |
|
|
|
|
grpc_fd_orphan(exec_ctx, se->em_fd, NULL, NULL, "a"); |
|
|
|
|
grpc_fd_orphan(exec_ctx, se->em_fd, NULL, NULL, false /* already_closed */, |
|
|
|
|
"a"); |
|
|
|
|
gpr_free(se); |
|
|
|
|
/* Start to shutdown listen fd. */ |
|
|
|
|
grpc_fd_shutdown(exec_ctx, sv->em_fd, |
|
|
|
@ -171,7 +172,8 @@ static void listen_shutdown_cb(grpc_exec_ctx *exec_ctx, void *arg /*server */, |
|
|
|
|
int success) { |
|
|
|
|
server *sv = arg; |
|
|
|
|
|
|
|
|
|
grpc_fd_orphan(exec_ctx, sv->em_fd, NULL, NULL, "b"); |
|
|
|
|
grpc_fd_orphan(exec_ctx, sv->em_fd, NULL, NULL, false /* already_closed */, |
|
|
|
|
"b"); |
|
|
|
|
|
|
|
|
|
gpr_mu_lock(g_mu); |
|
|
|
|
sv->done = 1; |
|
|
|
@ -291,7 +293,8 @@ static void client_init(client *cl) { |
|
|
|
|
static void client_session_shutdown_cb(grpc_exec_ctx *exec_ctx, |
|
|
|
|
void *arg /*client */, int success) { |
|
|
|
|
client *cl = arg; |
|
|
|
|
grpc_fd_orphan(exec_ctx, cl->em_fd, NULL, NULL, "c"); |
|
|
|
|
grpc_fd_orphan(exec_ctx, cl->em_fd, NULL, NULL, false /* already_closed */, |
|
|
|
|
"c"); |
|
|
|
|
cl->done = 1; |
|
|
|
|
GPR_ASSERT( |
|
|
|
|
GRPC_LOG_IF_ERROR("pollset_kick", grpc_pollset_kick(g_pollset, NULL))); |
|
|
|
@ -511,7 +514,7 @@ static void test_grpc_fd_change(void) { |
|
|
|
|
GPR_ASSERT(b.cb_that_ran == second_read_callback); |
|
|
|
|
gpr_mu_unlock(g_mu); |
|
|
|
|
|
|
|
|
|
grpc_fd_orphan(&exec_ctx, em_fd, NULL, NULL, "d"); |
|
|
|
|
grpc_fd_orphan(&exec_ctx, em_fd, NULL, NULL, false /* already_closed */, "d"); |
|
|
|
|
grpc_exec_ctx_finish(&exec_ctx); |
|
|
|
|
destroy_change_data(&a); |
|
|
|
|
destroy_change_data(&b); |
|
|
|
|