Don't rename main thread at process level

Set only the internal name.

Fixes #17036 for both `bitcoind` and `bitcoin-qt`.
This commit is contained in:
Wladimir J. van der Laan
2019-10-03 06:08:52 +02:00
parent f4a0d27e85
commit 07e4bdba3b
4 changed files with 12 additions and 2 deletions

View File

@@ -416,7 +416,7 @@ int GuiMain(int argc, char* argv[])
std::tie(argc, argv) = winArgs.get();
#endif
SetupEnvironment();
util::ThreadRename("main");
util::ThreadSetInternalName("main");
std::unique_ptr<interfaces::Node> node = interfaces::MakeNode();