mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
13 lines
412 B
Diff
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;
|