| Index: src/platform-linux.cc
|
| diff --git a/src/platform-linux.cc b/src/platform-linux.cc
|
| index 37330be82ba3b16146be383ba451e560c5accc32..362bf47cc1c5b5309e73dc3845f1237eba5ee2b3 100644
|
| --- a/src/platform-linux.cc
|
| +++ b/src/platform-linux.cc
|
| @@ -676,9 +676,11 @@ static void* ThreadEntry(void* arg) {
|
| // This is also initialized by the first argument to pthread_create() but we
|
| // don't know which thread will run first (the original thread or the new
|
| // one) so we initialize it here too.
|
| +#ifdef PR_SET_NAME
|
| prctl(PR_SET_NAME,
|
| reinterpret_cast<unsigned long>(thread->name()), // NOLINT
|
| 0, 0, 0);
|
| +#endif
|
| thread->data()->thread_ = pthread_self();
|
| ASSERT(thread->data()->thread_ != kNoThread);
|
| thread->Run();
|
|
|