1 file changed, 1 insertion(+)
lib/ais/plugin.c |    1 +

# HG changeset patch
# User Andrew Beekhof <[EMAIL PROTECTED]>
# Date 1226592451 -3600
# Branch stable-1.0
# Node ID 7d16ea618b68af85bfc9383c2780807e2ec35c9d
# Parent  8b546c12a4ea96645e0efa52023370770e7d122a
High: ais: Zero out the PID of disconnecting clients
This ensures shutdown completes if we notice the disconnected channel
before wait4() returns.

diff --git a/lib/ais/plugin.c b/lib/ais/plugin.c
--- a/lib/ais/plugin.c
+++ b/lib/ais/plugin.c
@@ -728,6 +728,7 @@ int ais_ipc_client_exit_callback (void *
     ENTER("Client=%p", conn);
     for (; lpc < SIZEOF(crm_children); lpc++) {
 	if(crm_children[lpc].conn == conn) {
+	    crm_children[lpc].pid = 0;
 	    crm_children[lpc].conn = NULL;
 	    crm_children[lpc].async_conn = NULL;
 	    client = crm_children[lpc].name;
_______________________________________________
Pacemaker mailing list
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to