projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix pthread error handling
[ust.git]
/
libust
/
tracectl.c
diff --git
a/libust/tracectl.c
b/libust/tracectl.c
index 6c839291af6f54a41ca3023dcc041b987f1baa66..1dee6165abc3dbad9cefcc6ec517cc39b7085b7a 100644
(file)
--- a/
libust/tracectl.c
+++ b/
libust/tracectl.c
@@
-1303,12
+1303,12
@@
static void stop_listener()
int result;
result = pthread_cancel(listener_thread);
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);
}
result = pthread_join(listener_thread, NULL);
- if(result
== -1
) {
-
PERROR("pthread_join"
);
+ if(result
!= 0
) {
+
ERR("pthread_join: %s", strerror(result)
);
}
}
}
}
This page took
0.022938 seconds
and
4
git commands to generate.