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.1.0-rc1~62 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=dde70ea0d552734c58d9776bb74b73b6314b9168;p=lttng-ust.git 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 88ac5965..1a1f7181 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -898,12 +898,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); }