summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-10-25 15:57:06 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-10-25 15:57:06 +0000
commit3cae44fbb9d9c18b91349f7977ca274153585791 (patch)
treecb892bed477717490e76c9a36dba1ea3dcd7d565 /syslogd.c
parent755ec717d9cd6e25767584a528034ce0ab0ee5aa (diff)
downloadrsyslog-3cae44fbb9d9c18b91349f7977ca274153585791.tar.gz
rsyslog-3cae44fbb9d9c18b91349f7977ca274153585791.tar.xz
rsyslog-3cae44fbb9d9c18b91349f7977ca274153585791.zip
removed a testing aid that accidently stayed in the code
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 46ccb24c..847de348 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -3491,7 +3491,7 @@ static void stopWorker(void)
static void startWorker(void)
{
int i;
- if(pMsgQueue == NULL) {
+ if(pMsgQueue != NULL) {
bGlblDone = 0; /* we are NOT done (else worker would immediately terminate) */
i = pthread_create(&thrdWorker, NULL, singleWorker, NULL);
dprintf("Worker thread started with state %d.\n", i);
@@ -7274,7 +7274,7 @@ int main(int argc, char **argv)
#ifdef USE_PTHREADS
/* create message queue */
pMsgQueue = queueInit();
- if(pMsgQueue != NULL) {
+ if(pMsgQueue == NULL) {
errno = 0;
logerror("error: could not create message queue - running single-threaded!\n");
} else { /* start up worker thread */