FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 11-23-2011, 09:15 AM
"Fabio M. Di Nitto"
 
Default qdiskd: report errors on cman_dispatch failures

Spotted by Coverity Scan

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
:100644 100644 01aa199... 6e9abea... M cman/qdisk/main.c
cman/qdisk/main.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/cman/qdisk/main.c b/cman/qdisk/main.c
index 01aa199..6e9abea 100644
--- a/cman/qdisk/main.c
+++ b/cman/qdisk/main.c
@@ -551,7 +551,9 @@ quorum_init(qd_ctx *ctx, node_info_t *ni, int max, struct h_data *h, int maxh)

tv.tv_sec = ctx->qc_interval;
tv.tv_usec = 0;
- cman_wait(ctx->qc_cman_user, &tv);
+ if (cman_wait(ctx->qc_cman_user, &tv) < 0)
+ logt_print(LOG_ERR, "cman_dispatch: %s
",
+ strerror(errno));
}

if (!_running) {
@@ -1246,10 +1248,12 @@ quorum_loop(qd_ctx *ctx, node_info_t *ni, int max)
} else {
error_cycles = 0;
}
-
+
/* Could hit a watchdog timer here if we wanted to */
if (_running) {
- cman_wait(ctx->qc_cman_user, &sleeptime);
+ if (cman_wait(ctx->qc_cman_user, &sleeptime) < 0)
+ logt_print(LOG_ERR, "cman_dispatch: %s
",
+ strerror(errno));
}
}

--
1.7.4.4
 

Thread Tools




All times are GMT. The time now is 07:09 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org