[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH] Cman: Handle "another instance running" error code



From: Jan Friesse <jfriesse redhat com>

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 60460d5..caa5bf6 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;
-- 
1.7.2.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]