Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / net / ettercap / patches / patch-ad
blob86855dcc98134722f74db5c7936dca8a7c1b0eac
1 $NetBSD$
3 --- src/ec_illithid.c.orig      2002-09-06 10:57:31.000000000 +0200
4 +++ src/ec_illithid.c
5 @@ -87,8 +87,8 @@ int illithid_gwip;
6  int illithid_buffer = -1;
7  pthread_t decoder_pid;
8  
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;
14  // protos...
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);
25     LOOP {
26        pthread_testcancel();
28 @@ -1110,6 +1115,9 @@ void Illithid_Reset_Conn(void *dummy)
29        hash_table[j] = 0;
30     }
32 +   pthread_mutex_lock(&decoder_mtx);
33 +   pthread_mutex_unlock(&decoder_mtx);
35     ECThread_destroy(decoder_pid);
37     Buffer_Flush(illithid_buffer);