From 3dec304bd4560d03c0c7338727e82f8eba2f7cb3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 15 May 2017 11:16:45 -0400 Subject: [PATCH] Fix: missing check on notification thread join MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index d9355b019..5a6741f2d 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -6334,13 +6334,13 @@ exit_init_data: if (notification_thread_handle) { notification_thread_command_quit(notification_thread_handle); notification_thread_handle_destroy(notification_thread_handle); - } - ret = pthread_join(notification_thread, &status); - if (ret) { - errno = ret; - PERROR("pthread_join notification thread"); - retval = -1; + ret = pthread_join(notification_thread, &status); + if (ret) { + errno = ret; + PERROR("pthread_join notification thread"); + retval = -1; + } } rcu_thread_offline(); -- 2.34.1