From 386ae0f6916d11d72022cc6f6b62bb2b82594f24 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 29 Sep 2019 21:49:35 +0300 Subject: 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. --- src/util/threadnames.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)); } -- cgit v1.2.3