From: Mathieu Desnoyers Date: Wed, 13 Jun 2012 00:03:53 +0000 (-0400) Subject: Fix: local apps allowed should disable local (not global) tracing X-Git-Tag: v2.0.4~4 X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=dc43c97f077c92fd1d90c898496120c08ca571a7 Fix: local apps allowed should disable local (not global) tracing Reported-by: Michael Burton Signed-off-by: Mathieu Desnoyers --- 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); }