1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/testing/bees/10-pthread_getname1.patch
Bradley Saulteaux 42422ba756 testing/bees: new aport
https://github.com/Zygo/bees
Best-Effort Extent-Same, a btrfs dedup agent
2019-02-05 14:14:27 +00:00

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