1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
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:
Ulrich Drepper
1998-12-29 12:07:10 +00:00
parent e4192acbca
commit c046e7a5a6
2 changed files with 6 additions and 0 deletions

View 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;
}