Mercurial > hg > freeDiameter
comparison libfdproto/sessions.c @ 1370:643883ec68ef
Handle case of thread cancellation in pthread_cond_timedwait (exp_fct)
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Mon, 10 Jun 2019 16:28:27 +0200 |
parents | f1bbcab403a6 |
children | a4dd31276f17 |
comparison
equal
deleted
inserted
replaced
1369:f1bbcab403a6 | 1370:643883ec68ef |
---|---|
220 | 220 |
221 CHECK_FCT_DO( fd_sess_destroy( &first ), break ); | 221 CHECK_FCT_DO( fd_sess_destroy( &first ), break ); |
222 | 222 |
223 } while (1); | 223 } while (1); |
224 | 224 |
225 if (errno == EINVAL) { | |
226 /* assume thread was cancelled in pthread_cond_timedwait */ | |
227 pthread_exit(0); | |
228 } | |
225 TRACE_DEBUG(INFO, "A system error occurred in session module! Expiry thread is terminating..."); | 229 TRACE_DEBUG(INFO, "A system error occurred in session module! Expiry thread is terminating..."); |
226 ASSERT(0); | 230 ASSERT(0); |
227 return NULL; | 231 return NULL; |
228 } | 232 } |
229 | 233 |