Initialize p_sem_avail.
Andreas Jaeger
aj@suse.de
Wed Jul 26 03:06:00 GMT 2000
Uli, you forgot to initialize p_sem_avail in pthread.c.
I've committed the appended patch,
Andreas
2000-07-26 Andreas Jaeger <aj@suse.de>
* pthread.c: Initialize p_sem_avail.
============================================================
Index: linuxthreads/pthread.c
--- linuxthreads/pthread.c 2000/07/26 02:15:48 1.60
+++ linuxthreads/pthread.c 2000/07/26 09:44:21
@@ -89,6 +89,7 @@
ATOMIC_INITIALIZER, /* struct pthread_atomic p_resume_count */
0, /* char p_woken_by_cancel */
0, /* char p_condvar_avail */
+ 0, /* char p_sem_avail */
NULL, /* struct pthread_extricate_if *p_extricate */
NULL, /* pthread_readlock_info *p_readlock_list; */
NULL, /* pthread_readlock_info *p_readlock_free; */
@@ -145,6 +146,7 @@
ATOMIC_INITIALIZER, /* struct pthread_atomic p_resume_count */
0, /* char p_woken_by_cancel */
0, /* char p_condvar_avail */
+ 0, /* char p_sem_avail */
NULL, /* struct pthread_extricate_if *p_extricate */
NULL, /* pthread_readlock_info *p_readlock_list; */
NULL, /* pthread_readlock_info *p_readlock_free; */
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
More information about the Libc-hacker
mailing list