36a37
> #include <pthread.h>
51a53,54
> pthread_mutex_t gh_mutex = PTHREAD_MUTEX_INITIALIZER;
> 
242c245,246
< 	    if ((he = gethostbyname(cpt->strarg)) == 0) {
---
> 	    pthread_mutex_lock(&gh_mutex);
> 	    if((he = gethostbyname(cpt->strarg)) == 0) {
244a249
> 		pthread_mutex_unlock(&gh_mutex);
247a253
> 	    pthread_mutex_unlock(&gh_mutex);
