diff options
| author | Hennadii Stepanov <[email protected]> | 2019-09-29 21:49:35 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2019-09-30 22:23:31 +0300 |
| commit | 386ae0f6916d11d72022cc6f6b62bb2b82594f24 (patch) | |
| tree | 0b9f784ab4f88ebfbb07a6ef74f6f2bf7d9e8ee8 /src | |
| parent | Merge #16713: Ignore old versionbit activations to avoid 'unknown softforks' ... (diff) | |
| download | discoin-386ae0f6916d11d72022cc6f6b62bb2b82594f24.tar.xz discoin-386ae0f6916d11d72022cc6f6b62bb2b82594f24.zip | |
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 b221b0c97..c25e9ed66 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)); } |