cluster: RHEL6 - Cman: Handle "another instance running" error code

Fabio M. Di Nitto fabbione at fedoraproject.org
Wed Jan 12 15:23:19 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=296cc43ca8edc150bcf0961469d6903c9b9136f6
Commit:        296cc43ca8edc150bcf0961469d6903c9b9136f6
Parent:        cdb8831463fd622a1bc24af5f9760ae0f456b039
Author:        Jan Friesse <jfriesse at redhat.com>
AuthorDate:    Mon Sep 27 15:22:03 2010 +0200
Committer:     Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Wed Jan 12 16:18:40 2011 +0100

Cman: Handle "another instance running" error code

Related: rhbz#617247, rhbz#617234
---
 cman/cman_tool/join.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

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;


More information about the cluster-commits mailing list