Fix: missing check on notification thread join
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 15 May 2017 15:16:45 +0000 (11:16 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 15 May 2017 15:16:45 +0000 (11:16 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index d9355b0199cc242d542e781d2ff1808d7b723afb..5a6741f2d0efcfb85ddcc045bcab9127c70c1115 100644 (file)
@@ -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();
This page took 0.02764 seconds and 4 git commands to generate.