Throw away any existing uv_default_loop, recreate after fork
This commit is contained in:
parent
5eaa6c152e
commit
ca0200f5d7
2 changed files with 4 additions and 2 deletions
|
@ -61,13 +61,14 @@ int xmrig::App::exec()
|
|||
return 2;
|
||||
}
|
||||
|
||||
m_signals = std::make_shared<Signals>(this);
|
||||
|
||||
int rc = 0;
|
||||
if (background(rc)) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
uv_loop_close(uv_default_loop());
|
||||
m_signals = std::make_shared<Signals>(this);
|
||||
|
||||
rc = m_controller->init();
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
|
||||
#include <memory>
|
||||
#include <uv.h>
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue