This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: STABLE3 - fence_tool: ls EXIT_FAILURE


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=678d2b3a6244a0c2b4efd82a123a7a48b575de52
Commit:        678d2b3a6244a0c2b4efd82a123a7a48b575de52
Parent:        64b00b3216f9c60bd484f66f1c9424ac9af132bd
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Thu Mar 5 14:38:36 2009 -0600
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Thu Mar 5 14:38:36 2009 -0600

fence_tool: ls EXIT_FAILURE

when fenced is not running instead of SUCCESS

Signed-off-by: David Teigland <teigland@redhat.com>
---
 fence/fence_tool/fence_tool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fence/fence_tool/fence_tool.c b/fence/fence_tool/fence_tool.c
index f5a857e..ce96359 100644
--- a/fence/fence_tool/fence_tool.c
+++ b/fence/fence_tool/fence_tool.c
@@ -471,7 +471,7 @@ static int do_list(void)
 
 	rv = fenced_domain_info(&d);
 	if (rv < 0)
-		exit(EXIT_SUCCESS); /* fenced probably not running */
+		exit(EXIT_FAILURE); /* fenced probably not running */
 
 	printf("fence domain\n");
 	printf("member count  %d\n", d.member_count);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]