From a3c9aa3ccf6bf710701074ffa97f2b7a59b0fc16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 30 Jun 2022 12:03:23 -0400 Subject: [PATCH] Fix: sessiond: report client list allocation failure as a fatal error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bin/lttng-sessiond/notification-thread-events.cpp | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.34.1