From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22605 invoked by alias); 27 Mar 2009 08:52:19 -0000 Received: (qmail 22597 invoked by alias); 27 Mar 2009 08:52:19 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion.fedora.phx.redhat.com Subject: cluster: STABLE3 - cman notifyd: add support for debugging via env var To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE3 X-Git-Reftype: branch X-Git-Oldrev: f45b3f6325415d985292aa7c59be3f8db0a0635e X-Git-Newrev: 9a54d81993c0925a00a269bde2bab3c95310b009 From: "Fabio M. Di Nitto" Message-Id: <20090327085155.1CB66120326@lists.fedorahosted.org> Date: Fri, 27 Mar 2009 08:52:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00913.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=9a54d81993c0925a00a269bde2bab3c95310b009 Commit: 9a54d81993c0925a00a269bde2bab3c95310b009 Parent: f45b3f6325415d985292aa7c59be3f8db0a0635e Author: Fabio M. Di Nitto AuthorDate: Fri Mar 27 09:51:03 2009 +0100 Committer: Fabio M. Di Nitto 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 --- 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)