Deleted Added
full compact
2c2
< __FBSDID("$FreeBSD: head/lib/libc/resolv/mtctxres.c 156956 2006-03-21 15:37:16Z ume $");
---
> __FBSDID("$FreeBSD: head/lib/libc/resolv/mtctxres.c 165258 2006-12-15 20:59:55Z ume $");
121,123c121,124
< pthread_mutex_lock(&keylock);
< _mtctxres_init();
< pthread_mutex_unlock(&keylock);
---
> if (pthread_mutex_lock(&keylock) == 0) {
> _mtctxres_init();
> (void) pthread_mutex_unlock(&keylock);
> }