diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-12-29 12:07:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-12-29 12:07:10 +0000 |
commit | c046e7a5a6007631882a7a1838fe804bc66882b9 (patch) | |
tree | 6b9834dccb8726d42c486271ba2b879d1d81e09d /linuxthreads | |
parent | e4192acbca0d9c93e1a28e26e2be10a0924239c6 (diff) | |
download | glibc-c046e7a5a6007631882a7a1838fe804bc66882b9.zip glibc-c046e7a5a6007631882a7a1838fe804bc66882b9.tar.gz glibc-c046e7a5a6007631882a7a1838fe804bc66882b9.tar.bz2 |
Update.
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>.
Diffstat (limited to 'linuxthreads')
-rw-r--r-- | linuxthreads/ChangeLog | 5 | ||||
-rw-r--r-- | linuxthreads/semaphore.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 8acde7b..5fbba3a 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -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. diff --git a/linuxthreads/semaphore.c b/linuxthreads/semaphore.c index cb23a71..eca68d2 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; } |