aboutsummaryrefslogtreecommitdiff
path: root/src/irc.cpp
diff options
context:
space:
mode:
authorGiel van Schijndel <me@mortis.eu>2012-06-24 17:03:57 +0200
committerGiel van Schijndel <me@mortis.eu>2012-07-17 01:50:35 +0200
commit96931d6f78ccc21ec38cd4655b1a250893a6f252 (patch)
treea7bd6c9bb2d0a9378b6db894b470126d0c2b4221 /src/irc.cpp
parent1c009d622ded6dd254d6be5161b4df875d492d12 (diff)
downloadbitcoin-96931d6f78ccc21ec38cd4655b1a250893a6f252.tar.xz
Give threads a recognisable name to aid in debugging
NOTE: These thread names are visible in gdb when using 'info threads'. Additionally both 'top' and 'ps' show these names *unless* told to display the command-line instead of task name. Signed-off-by: Giel van Schijndel <me@mortis.eu>
Diffstat (limited to 'src/irc.cpp')
-rw-r--r--src/irc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/irc.cpp b/src/irc.cpp
index 185be02f29..a790d3f4f9 100644
--- a/src/irc.cpp
+++ b/src/irc.cpp
@@ -189,6 +189,10 @@ bool GetIPFromIRC(SOCKET hSocket, string strMyName, CNetAddr& ipRet)
void ThreadIRCSeed(void* parg)
{
IMPLEMENT_RANDOMIZE_STACK(ThreadIRCSeed(parg));
+
+ // Make this thread recognisable as the IRC seeding thread
+ RenameThread("bitcoin-ircseed");
+
try
{
ThreadIRCSeed2(parg);