cluster: STABLE3 - cman: let 'cman-tool leave -w' wait even if shutdown has already started
Christine Caulfield
chrissie@fedoraproject.org
Fri Jan 2 13:06:00 GMT 2009
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f1491522879e9ca1d71ac8f84fd12091de89c6d5
Commit: f1491522879e9ca1d71ac8f84fd12091de89c6d5
Parent: fc7201e51687b6f357aa6b4dad0f37de1f5d5272
Author: Christine Caulfield <ccaulfie@redhat.com>
AuthorDate: Fri Jan 2 13:04:18 2009 +0000
Committer: Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Fri Jan 2 13:05:21 2009 +0000
cman: let 'cman-tool leave -w' wait even if shutdown has already started
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
cman/cman_tool/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cman/cman_tool/main.c b/cman/cman_tool/main.c
index c48083b..a6d35ca 100644
--- a/cman/cman_tool/main.c
+++ b/cman/cman_tool/main.c
@@ -561,7 +561,7 @@ static void leave(commandline_t *comline)
}
result = cman_shutdown(h, flags);
- if (result) {
+ if (result && !comline->wait_opt) {
die("Error leaving cluster: %s", cman_error(errno));
}
cman_finish(h);
More information about the Cluster-cvs
mailing list