From: Jérémie Galarneau Date: Thu, 30 Jun 2022 16:03:23 +0000 (-0400) Subject: Fix: sessiond: report client list allocation failure as a fatal error X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a3c9aa3ccf6bf710701074ffa97f2b7a59b0fc16;p=lttng-tools.git Fix: sessiond: report client list allocation failure as a fatal error Report the failure to allocate a notification client list as a fatal notification thread error. Signed-off-by: Jérémie Galarneau Change-Id: I8f2654020d0d890cc9275d445fdeccde940d2ae0 --- diff --git a/src/bin/lttng-sessiond/notification-thread-events.cpp b/src/bin/lttng-sessiond/notification-thread-events.cpp index a93b4cb95..43879c99f 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.cpp +++ b/src/bin/lttng-sessiond/notification-thread-events.cpp @@ -2965,6 +2965,7 @@ int handle_notification_thread_command_register_trigger( client_list = notification_client_list_create(state, condition); if (!client_list) { ERR("Error creating notification client list for trigger %s", trigger->name); + ret = -1; goto error_free_ht_element; } }