From 3619c3a96501f628788e80a3c86d50357f44d291 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 6 Mar 2009 02:42:48 +0000 Subject: [PATCH] Use list_del on process info in the condition that lib_exit_fn is called to prevent segfault from processes later processing that list entry. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1791 fd59a12c-fef9-0310-b244-a6a79926bd2f --- services/cpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/cpg.c b/services/cpg.c index d790c9f5..2e91e93a 100644 --- a/services/cpg.c +++ b/services/cpg.c @@ -489,8 +489,8 @@ static int cpg_lib_exit_fn (void *conn) notify_info.nodeid = api->totem_nodeid_get(); notify_info.reason = CONFCHG_CPG_REASON_PROCDOWN; cpg_node_joinleave_send(gi, pi, MESSAGE_REQ_EXEC_CPG_PROCLEAVE, CONFCHG_CPG_REASON_PROCDOWN); - list_del(&pi->list); } + list_del(&pi->list); api->ipc_refcnt_dec (conn); return (0); }