summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-13 11:44:59 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-13 11:44:59 +0000
commitde1f787307066bea620b3d6631ac68ebf657d561 (patch)
tree3e4d9d68c294f6daa2b9e85cfbfa8529effb8d55 /syslogd.c
parent18bea60667f4ced5ac65e91fbd7c7a00ba22b319 (diff)
downloadrsyslog-de1f787307066bea620b3d6631ac68ebf657d561.tar.gz
rsyslog-de1f787307066bea620b3d6631ac68ebf657d561.tar.xz
rsyslog-de1f787307066bea620b3d6631ac68ebf657d561.zip
- fixed a race condition in DoDie() - cosmetic issue in debugging mode,
could not happen in production - added the ability to persist current read location for the file monitor
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syslogd.c b/syslogd.c
index fa364d4d..93e526bc 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -2413,9 +2413,9 @@ void logerror(char *type)
static void doDie(int sig)
{
static int iRetries = 0; /* debug aid */
- dbgprintf("DoDie called.\n");
+ printf("DoDie called.\n");
if(iRetries++ == 4) {
- dbgprintf("DoDie called 5 times - unconditional exit\n");
+ printf("DoDie called 5 times - unconditional exit\n");
exit(1);
}
bFinished = sig;