mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
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>.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user