blob: 2a5d88c56ab06fcb828249da5be3d110c3ea90d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- 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
|