diff --git a/src/App.cpp b/src/App.cpp index 903177f1..0b69c884 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -88,11 +88,11 @@ int xmrig::App::exec() m_signals = new Signals(this); + background(); + // load hasher modules Hasher::loadHashers(m_appFileName); - background(); - Summary::print(m_controller); if (m_controller->config()->isDryRun()) { diff --git a/src/App_unix.cpp b/src/App_unix.cpp index 2b598c22..2979a41c 100644 --- a/src/App_unix.cpp +++ b/src/App_unix.cpp @@ -57,9 +57,4 @@ void xmrig::App::background() if (i < 0) { LOG_ERR("setsid() failed (errno = %d)", errno); } - - i = chdir("/"); - if (i < 0) { - LOG_ERR("chdir() failed (errno = %d)", errno); - } }