Navigation


Changeset 1370:643883ec68ef in freeDiameter for libfdproto


Ignore:
Timestamp:
Jun 10, 2019, 11:28:27 PM (5 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Handle case of thread cancellation in pthread_cond_timedwait (exp_fct)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/sessions.c

    r1369 r1370  
    223223        } while (1);
    224224
     225        if (errno == EINVAL) {
     226                /* assume thread was cancelled in pthread_cond_timedwait */
     227                pthread_exit(0);
     228        }
    225229        TRACE_DEBUG(INFO, "A system error occurred in session module! Expiry thread is terminating...");
    226230        ASSERT(0);
Note: See TracChangeset for help on using the changeset viewer.