diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-23 15:17:55 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-23 15:17:55 +0200 |
commit | b1f2e53921b7ab19c363a63de47a0e7a35866052 (patch) | |
tree | 6b87e6a2a868482e16b64a6244e37512ebe4d4ab /runtime/apc.c | |
parent | b50d13a6a97c0b6fa14807775ae0edf52ef015fb (diff) | |
download | rsyslog-b1f2e53921b7ab19c363a63de47a0e7a35866052.tar.gz rsyslog-b1f2e53921b7ab19c363a63de47a0e7a35866052.tar.xz rsyslog-b1f2e53921b7ab19c363a63de47a0e7a35866052.zip |
prevented unneccessary apc calls
Diffstat (limited to 'runtime/apc.c')
-rw-r--r-- | runtime/apc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/apc.c b/runtime/apc.c index b0b5f298..5919191d 100644 --- a/runtime/apc.c +++ b/runtime/apc.c @@ -257,8 +257,11 @@ execScheduled(void) END_MTX_PROTECTED_OPERATIONS_UNCOND(&listMutex); CHKiRet(iRet); - DBGPRINTF("running apc scheduler - we have %s to execute\n", - pExecList == NULL ? "nothing" : "something"); + if(pExecList != NULL) { + DBGPRINTF("running apc scheduler - we have %s to execute\n", + pExecList == NULL ? "nothing" : "something"); + } + for(pCurr = pExecList ; pCurr != NULL ; pCurr = pNext) { dbgprintf("executing apc list entry %p, apc %p\n", pCurr, pCurr->pApc); pNext = pCurr->pNext; |