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

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=4a80540bf2b6892744d35331a87229da656425e4
Commit:        4a80540bf2b6892744d35331a87229da656425e4
Parent:        ae8b85f71f38be166cf4de5793c37e952639e69d
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:57:02 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:57 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:57 cluster: master - 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).