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