X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libust%2Ftracectl.c;h=1dee6165abc3dbad9cefcc6ec517cc39b7085b7a;hb=18cbdbac7dc495571984b347adf0af1810b2f007;hp=6c839291af6f54a41ca3023dcc041b987f1baa66;hpb=308a2bf9b2145802748c47ea41a1529486a54b21;p=lttng-ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 6c839291..1dee6165 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -1303,12 +1303,12 @@ static void stop_listener() int result; result = pthread_cancel(listener_thread); - if(result == -1) { - PERROR("pthread_cancel"); + if(result != 0) { + ERR("pthread_cancel: %s", strerror(result)); } result = pthread_join(listener_thread, NULL); - if(result == -1) { - PERROR("pthread_join"); + if(result != 0) { + ERR("pthread_join: %s", strerror(result)); } }