mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 17:25:17 +03:00
23 lines
675 B
Diff
23 lines
675 B
Diff
--- bees-0.6.1/lib/task.cc
|
|
+++ bees-0.6.1/lib/task.cc
|
|
@@ -104,7 +104,6 @@
|
|
|
|
char buf[24];
|
|
memset(buf, '\0', sizeof(buf));
|
|
- DIE_IF_MINUS_ERRNO(pthread_getname_np(pthread_self(), buf, sizeof(buf)));
|
|
Cleanup pthread_name_cleaner([&]() {
|
|
pthread_setname_np(pthread_self(), buf);
|
|
});
|
|
--- bees-0.6.1/src/bees.cc
|
|
+++ bees-0.6.1/src/bees.cc
|
|
@@ -160,10 +160,6 @@
|
|
// OK try the pthread name next.
|
|
char buf[24];
|
|
memset(buf, '\0', sizeof(buf));
|
|
- int err = pthread_getname_np(pthread_self(), buf, sizeof(buf));
|
|
- if (err) {
|
|
- return string("pthread_getname_np: ") + strerror(err);
|
|
- }
|
|
buf[sizeof(buf) - 1] = '\0';
|
|
|
|
// thread_getname_np returns process name
|