summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-01-19 15:24:16 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-01-19 15:24:16 +0100
commit3fe63651667d3b74c2f9c97824cb9ed65913a99e (patch)
tree918889a059e7c85c351715f48adf26758df9a251 /tools
parent4124fa03f6ce58893642342a48eee5fe0cf5d478 (diff)
downloadrsyslog-3fe63651667d3b74c2f9c97824cb9ed65913a99e.tar.gz
rsyslog-3fe63651667d3b74c2f9c97824cb9ed65913a99e.tar.xz
rsyslog-3fe63651667d3b74c2f9c97824cb9ed65913a99e.zip
refactor: remove very old sync.[ch] system for "abstracting" mutex access
This was a bad idea that never was used much.
Diffstat (limited to 'tools')
-rw-r--r--tools/syslogd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index 4cfbd377..2e7a1e23 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -695,7 +695,7 @@ DEFFUNC_llExecFunc(flushRptdMsgsActions)
assert(pAction != NULL);
BEGINfunc
- LockObj(pAction);
+ d_pthread_mutex_lock(&pAction->mutAction);
/* TODO: time() performance: the call below could be moved to
* the beginn of the llExec(). This makes it slightly less correct, but
* in an acceptable way. -- rgerhards, 2008-09-16
@@ -707,7 +707,7 @@ DEFFUNC_llExecFunc(flushRptdMsgsActions)
actionWriteToAction(pAction);
BACKOFF(pAction);
}
- UnlockObj(pAction);
+ d_pthread_mutex_unlock(&pAction->mutAction);
ENDfunc
return RS_RET_OK; /* we ignore errors, we can not do anything either way */