From 098ae6d2e5e67263cc8b317512876fecf8c0cb24 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 9 Jun 2009 12:19:53 +0000 Subject: [PATCH] Don't use the system log when generating a CGI script. This is is normally done by a human on a console, rather than in the background, so the system log isn't where people would look for error messages. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5734 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/sensord/sensord.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 75d123a7..828f29a4 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,7 @@ SVN-HEAD Using sigaction for signal handlers Convert to linux coding style Cleanup and refactoring of the source code + Don't use the system log when generating a CGI script sensors-detect: Add nNidia nForce MCP78S SMBus detection Display Super-I/O address even if LD is disabled Differentiate between PC8374L and WPCD377I diff --git a/prog/sensord/sensord.c b/prog/sensord/sensord.c index 59e5a728..1a7ff6c2 100644 --- a/prog/sensord/sensord.c +++ b/prog/sensord/sensord.c @@ -236,7 +236,8 @@ int main(int argc, char **argv) if (loadLib(sensord_args.cfgFile)) exit(EXIT_FAILURE); - openLog(); + if (!sensord_args.doCGI) + openLog(); if (sensord_args.rrdFile) { ret = rrdInit();