diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-02-04 01:09:47 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-02-04 01:09:51 +0100 |
commit | decdff921b87bbfba7a7099c1be71e2cd302468b (patch) | |
tree | 344f154db6dfdc3b040debdeacd10c9b9c02d69d /src/core | |
parent | 8c0596edcaf00680eea55455471cba84ccf8061e (diff) |
Fixing potential hitch in iomgr shutdown.
The background_callback_executor may sit on the condition as well. If we're not broadcasting the condition, it may eat the condition signal, and starve the shutdown sequence of it.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/iomgr/iomgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/iomgr.c b/src/core/iomgr/iomgr.c index 8989b491d5..c280b26712 100644 --- a/src/core/iomgr/iomgr.c +++ b/src/core/iomgr/iomgr.c @@ -143,7 +143,7 @@ void grpc_iomgr_ref(void) { void grpc_iomgr_unref(void) { gpr_mu_lock(&g_mu); if (0 == --g_refs) { - gpr_cv_signal(&g_cv); + grpc_kick_poller(); } gpr_mu_unlock(&g_mu); } |