]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
notes on future async
authorAlan T. DeKok <aland@freeradius.org>
Thu, 7 Sep 2017 17:12:42 +0000 (13:12 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 7 Sep 2017 17:12:52 +0000 (13:12 -0400)
src/modules/rlm_exec/rlm_exec.c

index a4f6cfea4d82d80f0606505ecdbe9b385256d850..0288e4f233b040269a88d8b5612a12bd446ec239 100644 (file)
@@ -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.