From f0154936b20f83142d7de88cac75fa620a6b730b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 26 Aug 2011 06:17:23 -0400 Subject: [PATCH] cancel global thread at exit Signed-off-by: Mathieu Desnoyers --- libust/lttng-ust-comm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index 6b548f8..13b3895 100644 --- a/libust/lttng-ust-comm.c +++ b/libust/lttng-ust-comm.c @@ -501,12 +501,10 @@ void __attribute__((destructor)) lttng_ust_exit(void) lttng_ust_comm_should_quit = 1; pthread_mutex_unlock(<tng_ust_comm_mutex); -#if 0 ret = pthread_cancel(global_apps.ust_listener); if (ret) { ERR("Error cancelling global ust listener thread"); } -#endif //0 cleanup_sock_info(&global_apps); -- 2.34.1