From patchwork Wed Aug 24 15:34:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 1093092 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7OFXmUH002448 for ; Wed, 24 Aug 2011 15:34:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751578Ab1HXPeH (ORCPT ); Wed, 24 Aug 2011 11:34:07 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:42819 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751264Ab1HXPeG (ORCPT ); Wed, 24 Aug 2011 11:34:06 -0400 Received: by mail-ew0-f46.google.com with SMTP id 4so527255ewy.19 for ; Wed, 24 Aug 2011 08:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:subject:to:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=flUrhzU6jnFxtYyv4J4dNP0SJ5XOj4zHrTqdB35jJFQ=; b=nWzSo8Xx4jMhL71IeOufxX73r6Eph+2cX2hqgRSHRI+vvlFXnRBZvuECOdaJms45yZ QWiq4qSjRi3a7yPNeWsYCECNBOjYd9KnpV5qBpit0bbyasqQRV/FNio5JGGwT9A4C+9p IhrFD/Lrt0qCq6A1e7NFBF0D/Yac0tYPHcRg8= Received: by 10.14.16.147 with SMTP id h19mr408932eeh.150.1314200045917; Wed, 24 Aug 2011 08:34:05 -0700 (PDT) Received: from matisse.1015granger.net (adsl-99-26-161-222.dsl.sfldmi.sbcglobal.net [99.26.161.222]) by mx.google.com with ESMTPS id a53sm761572eeb.28.2011.08.24.08.34.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Aug 2011 08:34:05 -0700 (PDT) From: Chuck Lever Subject: [PATCH 2/5] sm-notify: Disable syslog messages when debugging is enabled To: linux-nfs@vger.kernel.org Date: Wed, 24 Aug 2011 11:34:03 -0400 Message-ID: <20110824153403.3138.74467.stgit@matisse.1015granger.net> In-Reply-To: <20110824153024.3138.63294.stgit@matisse.1015granger.net> References: <20110824153024.3138.63294.stgit@matisse.1015granger.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 24 Aug 2011 15:34:31 +0000 (UTC) statd's "-F" flag disables syslog output, and specifies sm-notify's "-d" option when it runs it. sm-notify's "-d" option should therefore also disable syslog output. Signed-off-by: Chuck Lever --- utils/statd/sm-notify.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c index 1f490b0..f05eadf 100644 --- a/utils/statd/sm-notify.c +++ b/utils/statd/sm-notify.c @@ -395,12 +395,14 @@ usage: fprintf(stderr, exit(1); } - xlog_syslog(1); if (opt_debug) { + xlog_syslog(0); xlog_stderr(1); xlog_config(D_ALL, 1); - } else + } else { + xlog_syslog(1); xlog_stderr(0); + } xlog_open(progname); xlog(L_NOTICE, "Version " VERSION " starting");