From e8180a30e5cc547893cca4f65f4625f8a41ea1d4 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Wed, 20 Oct 2004 08:41:29 +0000 Subject: [PATCH] STABLE12-viced-callback-lock-host-during-multi-breakcallback-20041011 since it looks like CheckHost is using a gc'd client conn, this more or less has to be it. and don't deadlock. (cherry picked from commit d98a0af85d857f74ba8c50ae85f397a526822cb8) --- src/viced/callback.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/viced/callback.c b/src/viced/callback.c index 98c3521de..ff736600b 100644 --- a/src/viced/callback.c +++ b/src/viced/callback.c @@ -772,6 +772,7 @@ static void MultiBreakCallBack_r(cba, ncbas, afidp, xhost) if (!thishost || (thishost->hostFlags & HOSTDELETED)) { continue; } + rx_GetConnection(thishost->callback_rxcon); conns[j++] = thishost->callback_rxcon; #ifdef ADAPT_MTU @@ -842,8 +843,10 @@ static void MultiBreakCallBack_r(cba, ncbas, afidp, xhost) for (i=0; icallback_rxcon); h_Release_r(hp); + } } return ; -- 2.39.5