From: Alan T. DeKok Date: Thu, 7 Sep 2017 17:12:42 +0000 (-0400) Subject: notes on future async X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbd565bae22d8acb53ad1dc3242b331c78bbae08;p=thirdparty%2Ffreeradius-server.git notes on future async --- diff --git a/src/modules/rlm_exec/rlm_exec.c b/src/modules/rlm_exec/rlm_exec.c index a4f6cfea4d8..0288e4f233b 100644 --- a/src/modules/rlm_exec/rlm_exec.c +++ b/src/modules/rlm_exec/rlm_exec.c @@ -295,6 +295,18 @@ static rlm_rcode_t CC_HINT(nonnull) mod_exec_dispatch(void *instance, UNUSED voi ctx = radius_list_ctx(request, inst->output_list); } + /* + * async changes: + * + * - create rlm_exec_thread_t, with inst->el + * - or for the short term, just use request->el + * - do our own xlat of inst->program + * - call radius_start_program() + * - call event loop to add callback for EVFILT_PROC, NOTE_EXIT | NOTE_EXITSTATUS, pid + * - call event loop to add callback for reading from the pipe + * - return YIELD + */ + /* * This function does it's own xlat of the input program * to execute.