diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-09-29 21:49:35 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-09-30 22:23:31 +0300 |
commit | 386ae0f6916d11d72022cc6f6b62bb2b82594f24 (patch) | |
tree | 0b9f784ab4f88ebfbb07a6ef74f6f2bf7d9e8ee8 /src | |
parent | 6b2210f1016c9ed96ce470e588e4cb12fa36a900 (diff) |
util: Make thread names shorter
Thread names at the process level are limited by 15 characters. This
commit ensures that name 'b-httpworker.42' will not be cropped.
Diffstat (limited to 'src')
-rw-r--r-- | src/util/threadnames.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/threadnames.cpp b/src/util/threadnames.cpp index b221b0c975..c25e9ed661 100644 --- a/src/util/threadnames.cpp +++ b/src/util/threadnames.cpp @@ -57,6 +57,6 @@ static void SetInternalName(std::string name) { } void util::ThreadRename(std::string&& name) { - SetThreadName(("bitcoin-" + name).c_str()); + SetThreadName(("b-" + name).c_str()); SetInternalName(std::move(name)); } |