X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libust%2Ftracectl.c;h=1dee6165abc3dbad9cefcc6ec517cc39b7085b7a;hb=18cbdbac7dc495571984b347adf0af1810b2f007;hp=6c839291af6f54a41ca3023dcc041b987f1baa66;hpb=24b6668c651f21d415b4f3a4533c7c6c6692aa73;p=ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 6c83929..1dee616 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)); } }