summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--klogd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/klogd.c b/klogd.c
index 0a9621a0..d32610e9 100644
--- a/klogd.c
+++ b/klogd.c
@@ -414,8 +414,11 @@ extern void Syslog(int priority, char *fmt, ...)
static void CloseLogSrc(void)
{
- /* Turn on logging of messages to console. */
- ksyslog(7, NULL, 0);
+ /* Turn on logging of messages to console, but only if we had the -c
+ * option -- rgerhards, 2007-08-01
+ */
+ if (console_log_level != -1)
+ ksyslog(7, NULL, 0);
/* Shutdown the log sources. */
switch ( logsrc )