Subject: PR/24241 CVS commit: [netbsd-3] src/lib/libpthread
To: None <,,>
From: James Chacon <>
List: netbsd-bugs
Date: 11/01/2005 20:02:38
The following reply was made to PR lib/24241; it has been noted by GNATS.

From: James Chacon <>

 Module Name:	src
 Committed By:	jmc
 Date:		Tue Nov  1 20:01:33 UTC 2005
 Modified Files:
 	src/lib/libpthread [netbsd-3]: pthread_mutex.c
 Log Message:
  an internal assertion from the library if these routines are used
  before any threads are created and they need to sleep.
  Fix the interaction between sigtimedwait() and pthread_kill(),
  both waking up a sleeping thread and avoiding going to sleep if
  a signal is already pending. PR#30348
  f the target thread is a zombie.
  mandated by the standard).
  back out and fix the problems with single-threaded programs that
  are linked with libpthread differently, by checking if the library
  - for pthread_rwlock_timedrdlock(), just fail with EDEADLK immediately.
  - for pthread_mutex_lock_slow(), just go into an infinite loop
  waiting for signals.
  failing an assertion.
 To generate a diff of this commit:
 copyright notices on the relevant files.