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

[Cluster-devel] [PATCH 2/2] fenced: don't send dbus signals if disabled



This patch checks that dbus signals are not disabled before sending a
dbus signal.

Signed-off-by: Ryan O'Hara <rohara redhat com>
---
 fence/fenced/recover.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/fence/fenced/recover.c b/fence/fenced/recover.c
index 5d7680d..6fdd116 100644
--- a/fence/fenced/recover.c
+++ b/fence/fenced/recover.c
@@ -384,7 +384,9 @@ void fence_victims(struct fd *fd)
 		log_error("fence %s %s", node->name,
 			  error ? "failed" : "success");
 
-		dbus_send(node->name, node->nodeid, error);
+		if (!optd_disable_dbus) {
+		    dbus_send(node->name, node->nodeid, error);
+		}
 
  skip_log_message:
 		if (!error) {
-- 
1.7.2.3


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