public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - cman notifyd: add support for debugging via env var
@ 2009-03-27  8:52 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-03-27  8:52 UTC (permalink / raw)
  To: cluster-cvs-relay

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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-27  8:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-27  8:52 cluster: STABLE3 - cman notifyd: add support for debugging via env var Fabio M. Di Nitto

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 read-only IMAP folder(s) and NNTP newsgroup(s).