Fix: local apps allowed should disable local (not global) tracing
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 13 Jun 2012 00:03:53 +0000 (20:03 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 13 Jun 2012 00:05:45 +0000 (20:05 -0400)
Reported-by: Michael Burton <mburton@ciena.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-comm.c

index 0d4f5ef9e9c389656b23016c8e63191ce9dce923..12385dfca95762d32839b4e5917a92f8b82b4c58 100644 (file)
@@ -886,12 +886,12 @@ void __attribute__((constructor)) lttng_ust_init(void)
                PERROR("pthread_sigmask: %s", strerror(ret));
        }
 
-       ret = pthread_create(&local_apps.ust_listener, NULL,
-                       ust_listener_thread, &local_apps);
+       ret = pthread_create(&global_apps.ust_listener, NULL,
+                       ust_listener_thread, &global_apps);
 
        if (local_apps.allowed) {
-               ret = pthread_create(&global_apps.ust_listener, NULL,
-                               ust_listener_thread, &global_apps);
+               ret = pthread_create(&local_apps.ust_listener, NULL,
+                               ust_listener_thread, &local_apps);
        } else {
                handle_register_done(&local_apps);
        }
This page took 0.026399 seconds and 4 git commands to generate.