Mercurial > hg > freeDiameter
changeset 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 | d1c40627673c |
files | libfdproto/sessions.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libfdproto/sessions.c Mon Jun 10 16:27:54 2019 +0200 +++ b/libfdproto/sessions.c Mon Jun 10 16:28:27 2019 +0200 @@ -222,6 +222,10 @@ } while (1); + if (errno == EINVAL) { + /* assume thread was cancelled in pthread_cond_timedwait */ + pthread_exit(0); + } TRACE_DEBUG(INFO, "A system error occurred in session module! Expiry thread is terminating..."); ASSERT(0); return NULL;