Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 29 Dec 1998 12:07:10 +0000 (12:07 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 29 Dec 1998 12:07:10 +0000 (12:07 +0000)
1998-12-29  Ulrich Drepper  <drepper@cygnus.com>

* semaphore.c (sem_trywait): Don't forget to unlock the semaphore
lock.  Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.

linuxthreads/ChangeLog
linuxthreads/semaphore.c

index 8acde7b..5fbba3a 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-29  Ulrich Drepper  <drepper@cygnus.com>
+
+       * semaphore.c (sem_trywait): Don't forget to unlock the semaphore
+       lock.  Patch by Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>.
+
 1998-12-21  Ulrich Drepper  <drepper@cygnus.com>
 
        * manager.c: Threads now send __pthread_sig_cancel on termination.
index cb23a71..eca68d2 100644 (file)
@@ -77,6 +77,7 @@ int sem_trywait(sem_t * sem)
     sem->sem_value--;
     retval = 0;
   }
+  __pthread_unlock((struct _pthread_fastlock *) &sem->sem_lock);
   return retval;
 }