]> Kevux Git Server - fll/commitdiff
Bugfix: asynchronous processing is not working in controller program.
authorKevin Day <thekevinday@gmail.com>
Sun, 4 Apr 2021 17:08:53 +0000 (12:08 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 4 Apr 2021 17:08:53 +0000 (12:08 -0500)
This is because I accidentally passed a pointer of a pointer instead of the pointer itself.

level_3/controller/c/private-rule.c

index 4a0e1b2287821dad5b6ad4c1b28f79063415b7a2..97183d1bbac0ef69e9ad3fdaf9b2939976e83f67 100644 (file)
@@ -2085,7 +2085,7 @@ extern "C" {
 
     if (F_status_is_error_not(status)) {
       if (asynchronous) {
-        status = f_thread_create(0, &process->id_thread, controller_thread_process, (void *) &process);
+        status = f_thread_create(0, &process->id_thread, controller_thread_process, (void *) process);
 
         if (F_status_is_error(status)) {
           controller_entry_error_print(main.data->error, cache.action, F_status_set_fine(status), "f_thread_create", F_true, main.thread);