* with something like the server
* shutting down.
*/
- unlang_interpret_synchronous(unlang_interpret_event_list(request), child);
+ unlang_interpret_synchronous(NULL, child);
talloc_free(child);
}
bool dont_wait_for_event;
int iterations = 0;
+ fr_event_list_t *our_el = NULL;
+
old_intp = unlang_interpret_get(request);
caller = request->module;
+ if (!el) el = our_el = fr_event_list_alloc(NULL, NULL, NULL);
+
intps = unlang_interpret_synchronous_alloc(request, el);
unlang_interpret_set(request, intps->intp);
DEBUG3("%u runnable, %u yielded", fr_heap_num_elements(intps->runnable), intps->yielded);
}
+ if (our_el) talloc_free(our_el);
+
talloc_free(intps);
unlang_interpret_set(request, old_intp);
request->module = caller;