X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libust%2Ftracectl.c;h=bb03447d6fabdad5cea31cde8ec5e3bc888a35ac;hb=a4a71875833fd9cbae660c0d36997331710862dd;hp=6c839291af6f54a41ca3023dcc041b987f1baa66;hpb=308a2bf9b2145802748c47ea41a1529486a54b21;p=ust.git diff --git a/libust/tracectl.c b/libust/tracectl.c index 6c83929..bb03447 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -43,8 +43,6 @@ #define MSG_NOTIF 1 #define MSG_REGISTER_NOTIF 2 -char consumer_stack[10000]; - /* This should only be accessed by the constructor, before the creation * of the listener, and then only by the listener. */ @@ -1303,12 +1301,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)); } }