summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorvarmojfekoj <theinric@redhat.com>2009-05-28 16:01:34 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-05-28 16:01:34 +0200
commitd8ba1a0d9f1f90c250cc2405f87be151ac609968 (patch)
tree8f5556545c5a83c69cea9fd0885f52c55c77a1ae /tools
parent362c006f0ff9f917adfa8a60931e339d31b4699a (diff)
downloadrsyslog-d8ba1a0d9f1f90c250cc2405f87be151ac609968.tar.gz
rsyslog-d8ba1a0d9f1f90c250cc2405f87be151ac609968.tar.xz
rsyslog-d8ba1a0d9f1f90c250cc2405f87be151ac609968.zip
bugfix: internal messages were emitted to whatever file had fd2
...when rsyslogd ran in forked mode (as usual!) Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/syslogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index b0d6fa25..1840030b 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -925,7 +925,7 @@ logmsgInternal(int iErr, int pri, uchar *msg, int flags)
* permits us to process unmodified config files which otherwise contain a
* supressor statement.
*/
- if(bErrMsgToStderr || iConfigVerify) {
+ if(((Debug || NoFork) && bErrMsgToStderr) || iConfigVerify) {
fprintf(stderr, "rsyslogd: %s\n", msg);
}