This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]