--- src/lib/howl/MacOSX/macosx_salt.c.orig Wed Mar 30 17:27:46 2005
+++ src/lib/howl/MacOSX/macosx_salt.c Wed Mar 30 17:27:56 2005
+ pthread_mutexattr_t attrs;
*salt = (sw_salt) sw_malloc(sizeof(struct _sw_salt));
err = sw_translate_error(*salt, SW_E_MEM);
(*salt)->m_sockets.m_prev = NULL;
(*salt)->m_step = SW_FALSE;
+ pthread_mutexattr_settype(&attrs, PTHREAD_MUTEX_RECURSIVE);
+ pthread_mutex_init(&(*salt)->m_mutex, &attrs);
signal(SIGPIPE, SIG_IGN);
+ pthread_mutex_lock(&self->m_mutex);
+ pthread_mutex_unlock(&self->m_mutex);