LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cman_tool_handle_another_instance_is_running_error_code.patch of Package cluster (Project home:sschapiro:openstack:upstream)

commit 296cc43ca8edc150bcf0961469d6903c9b9136f6
Author: Jan Friesse <jfriesse@redhat.com>
Date:   Mon Sep 27 15:22:03 2010 +0200

    Cman: Handle "another instance running" error code
    
    Related: rhbz#617247, rhbz#617234

diff --git a/cman/cman_tool/join.c b/cman/cman_tool/join.c
index ed8b535..0d24d99 100644
--- a/cman/cman_tool/join.c
+++ b/cman/cman_tool/join.c
@@ -85,6 +85,12 @@ static const char *corosync_exit_reason(signed char status)
 	case 16:
 		return "Required directory not present /var/lib/corosync.";
 		break;
+	case 17:
+		return "Could not acquire lock";
+		break;
+	case 18:
+		return "Another Corosync instance is already running";
+		break;
 	default:
 		sprintf(reason, "Error, reason code is %d", status);
 		return reason;