From 2ce16df42321b0b090ec8cab8c2f3afd5df3cbf7 Mon Sep 17 00:00:00 2001 From: XMRig Date: Wed, 5 Jun 2024 03:23:58 +0700 Subject: [PATCH] Create signal handles after fork() call, replace #3492. --- src/App.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.cpp b/src/App.cpp index 39ec0d62..100d2483 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -61,13 +61,13 @@ int xmrig::App::exec() return 2; } - m_signals = std::make_shared(this); - int rc = 0; if (background(rc)) { return rc; } + m_signals = std::make_shared(this); + rc = m_controller->init(); if (rc != 0) { return rc;