From: Ryan O'Hara <rohara@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 2/2] fenced: don't send dbus signals if disabled
Date: Wed, 2 Feb 2011 17:01:14 -0600 [thread overview]
Message-ID: <1296687674-23121-1-git-send-email-rohara@redhat.com> (raw)
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
next reply other threads:[~2011-02-02 23:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 23:01 Ryan O'Hara [this message]
2011-02-02 23:11 ` [Cluster-devel] [PATCH 2/2] fenced: don't send dbus signals if disabled Lon Hohberger
2011-02-02 23:34 ` Ryan O'Hara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1296687674-23121-1-git-send-email-rohara@redhat.com \
--to=rohara@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).