aports/testing/bees/10-pthread_getname1.patch
2023-09-05 11:55:06 +00:00

13 lines
412 B
Diff

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;