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.
This commit is contained in:
parent
0ae862efd1
commit
2113f48271
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue