projects/aports·blob master · refs

13 lines · 412 B

1diff --git a/lib/task.cc b/lib/task.cc
2index 9604ff2..238a841 100644
3--- a/lib/task.cc
4+++ b/lib/task.cc
5@@ -32,8 +32,6 @@ namespace crucible {
6 pthread_getname()
7 {
8 char buf[thread_name_length + 1] = { 0 };
9- // We'll get an empty name if this fails...
10- pthread_getname_np(pthread_self(), buf, sizeof(buf));
11 // ...or at least null-terminated garbage
12 buf[thread_name_length] = '\0';
13 return buf;