diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-04 17:17:12 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-04 17:17:12 +0000 |
commit | 800ac1889b99057f1e6670d4ce5941bda33b6773 (patch) | |
tree | 0f4eb44b3ca1375790d006648422c9f535f4e00f /syslogd.c | |
parent | e41c0854dac685047dba1107b097bf674e740131 (diff) | |
download | rsyslog-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |