X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-ust-comm.c;h=1a1f7181df22c262c4e3bb5a4546cac97ee95793;hb=dde70ea0d552734c58d9776bb74b73b6314b9168;hp=88ac59655d7208f434c9e255b702a32b31758213;hpb=2eda209b5805e2ece837f436fca063ba2775e4ff;p=lttng-ust.git 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); }