From 86f76c1299b7827549a0cd754960347af627e18d Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 2 Oct 2008 10:44:44 +0200 Subject: 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. --- runtime/net.c | 3 --- 1 file changed, 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; } -- cgit