Skip to content

Commit 386ae0f

Browse files
committed
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.
1 parent 6b2210f commit 386ae0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/threadnames.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ static void SetInternalName(std::string name) { }
5757

5858
void util::ThreadRename(std::string&& name)
5959
{
60-
SetThreadName(("bitcoin-" + name).c_str());
60+
SetThreadName(("b-" + name).c_str());
6161
SetInternalName(std::move(name));
6262
}

0 commit comments

Comments
 (0)