Skip to content

Commit

Permalink
Create signal handles after fork() call, replace xmrig#3492.
Browse files Browse the repository at this point in the history
  • Loading branch information
xmrig authored and Ra2-IFV committed Sep 23, 2024
1 parent 49f72ef commit 1f1b760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ int xmrig::App::exec()
return 2;
}

m_signals = std::make_shared<Signals>(this);

int rc = 0;
if (background(rc)) {
return rc;
}

m_signals = std::make_shared<Signals>(this);

rc = m_controller->init();
if (rc != 0) {
return rc;
Expand Down

0 comments on commit 1f1b760

Please sign in to comment.