summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-04 17:17:12 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-04 17:17:12 +0000
commit800ac1889b99057f1e6670d4ce5941bda33b6773 (patch)
tree0f4eb44b3ca1375790d006648422c9f535f4e00f /syslogd.c
parente41c0854dac685047dba1107b097bf674e740131 (diff)
downloadrsyslog-800ac1889b99057f1e6670d4ce5941bda33b6773.tar.gz
rsyslog-800ac1889b99057f1e6670d4ce5941bda33b6773.tar.xz
rsyslog-800ac1889b99057f1e6670d4ce5941bda33b6773.zip
changed queue object Construction/Startup interface
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/syslogd.c b/syslogd.c
index 13ff8960..abb6d16b 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -2268,7 +2268,6 @@ static int parseLegacySyslogMsg(msg_t *pMsg, int flags)
void
logmsg(int pri, msg_t *pMsg, int flags)
{
- DEFiRet;
char *msg;
char PRItext[20];
@@ -3356,6 +3355,11 @@ init(void)
fprintf(stderr, "fatal error %d: could not create message queue - rsyslogd can not run!\n", iRet);
exit(1);
}
+ CHKiRet_Hdlr(queueStart(pMsgQueue)) {
+ /* no queue is fatal, we need to give up in that case... */
+ fprintf(stderr, "fatal error %d: could not start message queue - rsyslogd can not run!\n", iRet);
+ exit(1);
+ }
Initialized = 1;