CVSROOT: /cvs Module name: src Changes by: guent...@cvs.openbsd.org 2012/02/27 19:41:56
Modified files: lib/librthread : rthread_sync.c Log message: Our default mutex type is PTHREAD_MUTEX_ERRORCHECK, for which trying to unlock an uninitialized mutex is required to return EPERM, so add the necessary checks. For recursive mutexes, return an error from pthread_mutex_lock() if the count would overflow. problem observed in glib testing by aja@