diff --git a/src/cpp/ripple/Application.cpp b/src/cpp/ripple/Application.cpp index 6c2ea2b17..7b5dd2191 100644 --- a/src/cpp/ripple/Application.cpp +++ b/src/cpp/ripple/Application.cpp @@ -90,6 +90,12 @@ void sigIntHandler(int) } #endif +static void runAux(boost::asio::io_service& svc) +{ + NameThread("aux"); + svc.run(); +} + void Application::setup() { mJobQueue.setThreadCount(); @@ -117,7 +123,7 @@ void Application::setup() LogPartition::setSeverity(lsDEBUG); } - boost::thread(boost::bind(&boost::asio::io_service::run, &mAuxService)).detach(); + boost::thread(boost::bind(runAux, boost::ref(mAuxService))).detach(); if (!theConfig.RUN_STANDALONE) mSNTPClient.init(theConfig.SNTP_SERVERS);