From 3cae44fbb9d9c18b91349f7977ca274153585791 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 25 Oct 2005 15:57:06 +0000 Subject: removed a testing aid that accidently stayed in the code --- syslogd.c | 4 ++-- 1 file 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 */ -- cgit