Re: [PATCH 01/14] Remove unchecked coverity error

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

 



On 16/01/12 13:48 -0700, Steven Dake wrote:
Signed-off-by: Steven Dake <sdake@xxxxxxxxxx>
---

Reviewed-by: Angus Salkeld <asalkeld@xxxxxxxxxx>

tools/corosync-notifyd.c |    6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/tools/corosync-notifyd.c b/tools/corosync-notifyd.c
index 39c447c..190239e 100644
--- a/tools/corosync-notifyd.c
+++ b/tools/corosync-notifyd.c
@@ -372,7 +372,11 @@ _cs_quorum_init(void)
	quorum_fd_get(quorum_handle, &fd);
	qb_loop_poll_add(main_loop, QB_LOOP_MED, fd, POLLIN|POLLNVAL, NULL,
		_cs_quorum_dispatch);
-	quorum_trackstart(quorum_handle, CS_TRACK_CHANGES);
+	rc = quorum_trackstart(quorum_handle, CS_TRACK_CHANGES);
+	if (rc != CS_OK) {
+		qb_log(LOG_ERR, "Could not start tracking");
+		return;
+	}
}

static void
--
1.7.7.5

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux