From 2c1c00055b11bf9d54998ec2ac98e2464e4b07bd Mon Sep 17 00:00:00 2001 From: yang-g Date: Fri, 2 Oct 2015 16:15:05 -0700 Subject: [PATCH] Pollset can be destroyed again in pollset_work if the called_shutdown is not set here --- src/core/iomgr/pollset_posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/iomgr/pollset_posix.c b/src/core/iomgr/pollset_posix.c index 82a82cc0644..418502d1c6d 100644 --- a/src/core/iomgr/pollset_posix.c +++ b/src/core/iomgr/pollset_posix.c @@ -354,6 +354,7 @@ static void basic_do_promote(grpc_exec_ctx *exec_ctx, void *args, int success) { if (pollset->shutting_down) { /* We don't care about this pollset anymore. */ if (pollset->in_flight_cbs == 0 && !pollset->called_shutdown) { + pollset->called_shutdown = 1; finish_shutdown(exec_ctx, pollset); } } else if (grpc_fd_is_orphaned(fd)) {