diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-29 10:23:10 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-29 10:23:10 +0000 |
commit | 19cad8b12fa34e05f903c1d55c77453be1bab431 (patch) | |
tree | a7f3a8c4ec25c1670530933aeea498330d3ab70a /syslogd.c | |
parent | 33a8ec9855b7e7674ab2b1a6e4814b08652296de (diff) | |
download | rsyslog-19cad8b12fa34e05f903c1d55c77453be1bab431.tar.gz rsyslog-19cad8b12fa34e05f903c1d55c77453be1bab431.tar.bz2 rsyslog-19cad8b12fa34e05f903c1d55c77453be1bab431.zip |
implemented naming for all objects (mostly as a debug aid, but you never
know what else it will be good for)
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -1661,16 +1661,6 @@ int shouldProcessThisMessage(selector_t *f, msg_t *pMsg) } -/* cancellation cleanup handler - frees the action mutex - * rgerhards, 2008-01-14 - */ -static void callActionMutClean(void *arg) -{ - assert(arg != NULL); - pthread_mutex_unlock((pthread_mutex_t*) arg); -} - - /* helper to processMsg(), used to call the configured actions. It is * executed from within llExecFunc() of the action list. * rgerhards, 2007-08-02 @@ -3211,6 +3201,9 @@ init(void) fprintf(stderr, "fatal error %d: could not create message queue - rsyslogd can not run!\n", iRet); exit(1); } + /* name our main queue object (it's not fatal if it fails...) */ + objSetName((obj_t*) pMsgQueue, (uchar*) "main queue"); + /* ... set some properties ... */ # define setQPROP(func, directive, data) \ CHKiRet_Hdlr(func(pMsgQueue, data)) { \ |