3 --- src/ec_illithid.c.orig 2002-09-06 10:57:31.000000000 +0200
5 @@ -87,8 +87,8 @@ int illithid_gwip;
6 int illithid_buffer = -1;
9 -pthread_mutex_t decoder_mtx = PTHREAD_MUTEX_INITIALIZER;
10 -pthread_cond_t decoder_cond = PTHREAD_COND_INITIALIZER;
11 +pthread_mutex_t decoder_mtx;
12 +pthread_cond_t decoder_cond;
16 @@ -117,6 +117,11 @@ void * Illithid_Decoder(void *dummy)
18 DEBUG_MSG("Illithid_Decoder -- running");
20 + pthread_mutex_init(&decoder_mtx, NULL);
21 + pthread_cond_init(&decoder_cond, NULL);
23 + pthread_mutex_lock(&decoder_mtx);
28 @@ -1110,6 +1115,9 @@ void Illithid_Reset_Conn(void *dummy)
32 + pthread_mutex_lock(&decoder_mtx);
33 + pthread_mutex_unlock(&decoder_mtx);
35 ECThread_destroy(decoder_pid);
37 Buffer_Flush(illithid_buffer);