From a3f02905b0ac1f5a9d35b4185d3228d453d18510 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Fri, 4 Sep 2015 10:33:08 +0200 Subject: [PATCH] thread instead of a process for ub_fd() signalling --- ChangeLog | 1 + src/context.c | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index b6494733..a8cd5fd6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ Stub mode will be the default. Removes the dependency on libunbound * --with-getdns_query compiles and installs the getdns_query tool too * Fix assert on context destruction from a callback in stub mode too. + * Use a thread instead of a process for running the unbound event loop. * 2015-07-18: Version 0.3.1 * Fix repeating rdata fields diff --git a/src/context.c b/src/context.c index f575702d..8c49bcbe 100644 --- a/src/context.c +++ b/src/context.c @@ -1106,6 +1106,7 @@ rebuild_ub_ctx(struct getdns_context* context) { } /* setup */ context->unbound_ctx = ub_ctx_create(); + (void) ub_ctx_async(context->unbound_ctx, 1) context->unbound_ta_set = 0; if (!context->unbound_ctx) { return GETDNS_RETURN_MEMORY_ERROR;