This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: STABLE3 - cman notifyd: add support for debugging via env var
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Fri, 27 Mar 2009 08:51:55 +0000 (UTC)
- Subject: cluster: STABLE3 - cman notifyd: add support for debugging via env var
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=9a54d81993c0925a00a269bde2bab3c95310b009
Commit: 9a54d81993c0925a00a269bde2bab3c95310b009
Parent: f45b3f6325415d985292aa7c59be3f8db0a0635e
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Fri Mar 27 09:51:03 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Fri Mar 27 09:51:03 2009 +0100
cman notifyd: add support for debugging via env var
users can now export CMANNOTIFYD_DEBUG in the environment
to enable debugging.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
cman/notifyd/main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/cman/notifyd/main.c b/cman/notifyd/main.c
index 7a96444..da34f5a 100644
--- a/cman/notifyd/main.c
+++ b/cman/notifyd/main.c
@@ -92,6 +92,10 @@ static void read_arguments(int argc, char **argv)
}
}
+
+ if (getenv("CMANNOTIFYD_DEBUG"))
+ debug = 1;
+
}
static void remove_lockfile(void)