From c046e7a5a6007631882a7a1838fe804bc66882b9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 29 Dec 1998 12:07:10 +0000 Subject: [PATCH] Update. 1998-12-29 Ulrich Drepper * semaphore.c (sem_trywait): Don't forget to unlock the semaphore lock. Patch by Bernd Schmidt . --- linuxthreads/ChangeLog | 5 +++++ linuxthreads/semaphore.c | 1 + 2 files changed, 6 insertions(+) diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 8acde7bddd..5fbba3ab17 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +1998-12-29 Ulrich Drepper + + * semaphore.c (sem_trywait): Don't forget to unlock the semaphore + lock. Patch by Bernd Schmidt . + 1998-12-21 Ulrich Drepper * manager.c: Threads now send __pthread_sig_cancel on termination. diff --git a/linuxthreads/semaphore.c b/linuxthreads/semaphore.c index cb23a71a78..eca68d2f77 100644 --- a/linuxthreads/semaphore.c +++ b/linuxthreads/semaphore.c @@ -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; }