mirror of https://github.com/getdnsapi/getdns.git
Don't spawn extra process for recursion calls
This commit is contained in:
parent
6446643396
commit
55aa759730
|
@ -974,9 +974,10 @@ main(int argc, char **argv)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
my_eventloop_init(&my_loop);
|
my_eventloop_init(&my_loop);
|
||||||
if ((r = getdns_context_set_eventloop(context, &my_loop.base))) {
|
if ((r = getdns_context_set_eventloop(context, &my_loop.base)))
|
||||||
|
goto done_destroy_context;
|
||||||
|
if ((r = getdns_context_set_use_threads(context, 1)))
|
||||||
goto done_destroy_context;
|
goto done_destroy_context;
|
||||||
}
|
|
||||||
extensions = getdns_dict_create();
|
extensions = getdns_dict_create();
|
||||||
if (! extensions) {
|
if (! extensions) {
|
||||||
fprintf(stderr, "Could not create extensions dict\n");
|
fprintf(stderr, "Could not create extensions dict\n");
|
||||||
|
|
Loading…
Reference in New Issue