Mercurial > hg > freeDiameter
diff libfdcore/p_expiry.c @ 686:f83d9878bf66
Fixed in case of termination of several modules (before initialization completed)
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 19 Jan 2011 14:35:14 +0900 |
parents | 2e94ef0515d7 |
children | 78b665400097 |
line wrap: on
line diff
--- a/libfdcore/p_expiry.c Wed Jan 19 11:11:23 2011 +0900 +++ b/libfdcore/p_expiry.c Wed Jan 19 14:35:14 2011 +0900 @@ -38,8 +38,8 @@ /* Delay for garbage collection of expired peers, in seconds */ #define GC_TIME 120 -static pthread_t exp_thr; -static pthread_t gc_thr; +static pthread_t exp_thr = (pthread_t)NULL; +static pthread_t gc_thr = (pthread_t)NULL; static struct fd_list exp_list = FD_LIST_INITIALIZER( exp_list ); static pthread_cond_t exp_cnd = PTHREAD_COND_INITIALIZER; static pthread_mutex_t exp_mtx = PTHREAD_MUTEX_INITIALIZER;