Fix: relay: viewer_get_next_index handle null vstream
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index f001c972fe37da5529d012bedbef07d0c78b380d..a2e08b9b19d18905b40a576ff4927299054b3458 100644 (file)
@@ -1985,7 +1985,7 @@ static void *thread_dispatch_ust_registration(void *data)
                                 * Don't care about return value. Let the manage apps threads
                                 * handle app unregistration upon socket close.
                                 */
-                               (void) ust_app_register_done(app->sock);
+                               (void) ust_app_register_done(app);
 
                                /*
                                 * Even if the application socket has been closed, send the app
@@ -6028,6 +6028,9 @@ exit_options:
        sessiond_cleanup_options();
 
 exit_set_signal_handler:
+       /* Ensure all prior call_rcu are done. */
+       rcu_barrier();
+
        if (!retval) {
                exit(EXIT_SUCCESS);
        } else {
This page took 0.036504 seconds and 4 git commands to generate.