sessiond: notification: add support for async commands
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 6e507642a224be3affae1540bd762bc2a138849a..3f8cb4804ddd0800061f634afb3d6e92022e8103 100644 (file)
@@ -2475,7 +2475,12 @@ int handle_notification_thread_command(
        }
 end:
        cds_list_del(&cmd->cmd_list_node);
-       lttng_waiter_wake_up(&cmd->reply_waiter);
+       if (cmd->is_async) {
+               free(cmd);
+               cmd = NULL;
+       } else {
+               lttng_waiter_wake_up(&cmd->reply_waiter);
+       }
        pthread_mutex_unlock(&handle->cmd_queue.lock);
        return ret;
 error_unlock:
This page took 0.022645 seconds and 4 git commands to generate.