summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-28 15:18:09 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-28 15:18:09 +0000
commit2baf4cfac5bd3bb6e474d4096f38a25ec17199bf (patch)
tree0919a231025a1bcb45a3b72c80bd4428a50c718f /base
parentef4e8422d9e1ab9fbdb27d0a4c95387eed15ae98 (diff)
downloadchromium_src-2baf4cfac5bd3bb6e474d4096f38a25ec17199bf.zip
chromium_src-2baf4cfac5bd3bb6e474d4096f38a25ec17199bf.tar.gz
chromium_src-2baf4cfac5bd3bb6e474d4096f38a25ec17199bf.tar.bz2
Ignore error (especially don't log) from pthread_setname(), it's harmless.
BUG=47058 TEST=none Review URL: http://codereview.chromium.org/3415025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60783 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/platform_thread_mac.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/platform_thread_mac.mm b/base/platform_thread_mac.mm
index 428e276c..34afea7 100644
--- a/base/platform_thread_mac.mm
+++ b/base/platform_thread_mac.mm
@@ -62,6 +62,7 @@ void PlatformThread::SetName(const char* name) {
// hardcode it.
const int kMaxNameLength = 63;
std::string shortened_name = std::string(name).substr(0, kMaxNameLength);
- if (dynamic_pthread_setname_np(shortened_name.c_str()) < 0)
- PLOG(ERROR) << "pthread_setname_np";
+ // pthread_setname() fails (harmlessly) in the sandbox, ignore when it does.
+ // See http://crbug.com/47058
+ dynamic_pthread_setname_np(shortened_name.c_str());
}