summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-10-02 10:44:44 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-10-02 10:44:44 +0200
commit86f76c1299b7827549a0cd754960347af627e18d (patch)
treecc27ef67a1f6df70651b744fe0a6dbd94612eafa /runtime
parent925bea71772a23bc184a1da554fe310f39103b0c (diff)
downloadrsyslog-86f76c1299b7827549a0cd754960347af627e18d.tar.gz
rsyslog-86f76c1299b7827549a0cd754960347af627e18d.tar.xz
rsyslog-86f76c1299b7827549a0cd754960347af627e18d.zip
removed no longer needed mutex calls
problem source is that getnameinfo() is not cancel-safe, not that it is not thread-safe. It is now guarded against cancellation.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/net.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/net.c b/runtime/net.c
index 31b02f1a..85d6813b 100644
--- a/runtime/net.c
+++ b/runtime/net.c
@@ -684,14 +684,11 @@ mygetnameinfo(const struct sockaddr *sa, socklen_t salen,
char *host, size_t hostlen,
char *serv, size_t servlen, int flags)
{
- static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;
int iCancelStateSave;
int i;
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &iCancelStateSave);
- //pthread_mutex_lock(&mut);
i = getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
- //pthread_mutex_unlock(&mut);
pthread_setcancelstate(iCancelStateSave, NULL);
return i;
}