diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2005-10-25 15:57:06 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2005-10-25 15:57:06 +0000 |
commit | 3cae44fbb9d9c18b91349f7977ca274153585791 (patch) | |
tree | cb892bed477717490e76c9a36dba1ea3dcd7d565 /syslogd.c | |
parent | 755ec717d9cd6e25767584a528034ce0ab0ee5aa (diff) | |
download | rsyslog-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |