freebsd-ports/net-mgmt/etherape/files/patch-thread_resolve.c
Pav Lucistnik 0d554e8e95 - Update to 0.9.6
Approved by:	Samy Al Bahra <sbahra@kerneled.org> (maintainer)
2006-05-30 20:30:39 +00:00

23 lines
452 B
C

--- src/thread_resolve.c.orig Tue Apr 25 09:08:28 2006
+++ src/thread_resolve.c Mon May 29 00:37:45 2006
@@ -167,6 +167,10 @@
pthread_mutex_unlock(&resolvemtx);
}
+
+ /* close mutex */
+ close_mutex();
+
return NULL;
}
@@ -268,9 +272,6 @@
{
/* thread pool shutdown */
stop_threads();
-
- /* close mutex */
- close_mutex();
}
/* returns 1 if the current dns implementation has a socket wich needs a select() */