diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-04-27 17:36:16 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-04-27 17:36:16 +0200 |
commit | ee346d8aec05bc79600f7d5280d88ab45d2bcab5 (patch) | |
tree | ebcd078395dfda9eaa4593e88b45bbc07254d6dc | |
parent | 5cd3cdf3c82ef49506124ace13d20c52afd5d44a (diff) | |
download | rsyslog-ee346d8aec05bc79600f7d5280d88ab45d2bcab5.tar.gz rsyslog-ee346d8aec05bc79600f7d5280d88ab45d2bcab5.tar.xz rsyslog-ee346d8aec05bc79600f7d5280d88ab45d2bcab5.zip |
minor: some better debug instrumentation
-rw-r--r-- | plugins/imudp/imudp.c | 2 | ||||
-rw-r--r-- | runtime/rsconf.c | 6 | ||||
-rw-r--r-- | tcpsrv.c | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c index 8a463320..4a3560aa 100644 --- a/plugins/imudp/imudp.c +++ b/plugins/imudp/imudp.c @@ -6,7 +6,7 @@ * * File begun on 2007-12-21 by RGerhards (extracted from syslogd.c) * - * Copyright 2007-2009 Rainer Gerhards and Adiscon GmbH. + * Copyright 2007-2011 Rainer Gerhards and Adiscon GmbH. * * This file is part of rsyslog. * diff --git a/runtime/rsconf.c b/runtime/rsconf.c index b50b4fb6..2e2eaab6 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -280,10 +280,14 @@ dropPrivileges(rsconf_t *cnf) */ if(cnf->globals.gidDropPriv != 0) { doDropPrivGid(ourConf->globals.gidDropPriv); + DBGPRINTF("group privileges have been dropped to gid %u\n", (unsigned) + ourConf->globals.gidDropPriv); } if(cnf->globals.uidDropPriv != 0) { doDropPrivUid(ourConf->globals.uidDropPriv); + DBGPRINTF("user privileges have been dropped to uid %u\n", (unsigned) + ourConf->globals.uidDropPriv); } RETiRet; @@ -300,7 +304,6 @@ runInputModules(void) int bNeedsCancel; BEGINfunc - /* loop through all modules and activate them (brr...) */ pMod = module.GetNxtCnfType(runConf, NULL, eMOD_IN); while(pMod != NULL) { if(pMod->mod.im.bCanRun) { @@ -325,7 +328,6 @@ startInputModules(void) DEFiRet; modInfo_t *pMod; - /* loop through all modules and activate them (brr...) */ pMod = module.GetNxtCnfType(runConf, NULL, eMOD_IN); while(pMod != NULL) { iRet = pMod->mod.im.willRun(); @@ -898,6 +898,7 @@ tcpsrvConstructFinalize(tcpsrv_t *pThis) /* set up listeners */ CHKmalloc(pThis->ppLstn = calloc(pThis->iLstnMax, sizeof(netstrm_t*))); CHKmalloc(pThis->ppLstnPort = calloc(pThis->iLstnMax, sizeof(tcpLstnPortList_t*))); +dbgprintf("XXXX: open sockets (tcpsrv)\n"); iRet = pThis->OpenLstnSocks(pThis); finalize_it: |