From dc43c97f077c92fd1d90c898496120c08ca571a7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 12 Jun 2012 20:03:53 -0400 Subject: [PATCH] Fix: local apps allowed should disable local (not global) tracing Reported-by: Michael Burton Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-ust-comm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index 0d4f5ef9..12385dfc 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -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); } -- 2.34.1