From: Martin Willi Date: Tue, 24 Feb 2015 14:59:35 +0000 (+0100) Subject: host-resolver: Disable resolver thread cancellation by default X-Git-Tag: 5.3.0dr1~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2113f482712b441ba4516cbad26d328a5be15d28;p=thirdparty%2Fstrongswan.git host-resolver: Disable resolver thread cancellation by default The default of new threads is cancellable, but the host-resolver thread code clearly expects the opposite. --- diff --git a/src/libstrongswan/networking/host_resolver.c b/src/libstrongswan/networking/host_resolver.c index a7524ac23a..cb8b48b459 100644 --- a/src/libstrongswan/networking/host_resolver.c +++ b/src/libstrongswan/networking/host_resolver.c @@ -163,6 +163,9 @@ static void *resolve_hosts(private_host_resolver_t *this) int error; bool old, timed_out; + /* default resolver threads to non-cancellable */ + thread_cancelability(FALSE); + while (TRUE) { this->mutex->lock(this->mutex);