From 8d61a47040ea3cffccf839c91340d7a606e98b07 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 19 Mar 2019 22:13:43 +0700 Subject: [PATCH] Fix uv_tty_reset_mode on Linux. --- src/App.cpp | 2 -- src/base/io/Console.cpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.cpp b/src/App.cpp index 500a521d..db91bab5 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -68,8 +68,6 @@ xmrig::App::App(Process *process) : xmrig::App::~App() { - uv_tty_reset_mode(); - delete m_signals; delete m_console; delete m_controller; diff --git a/src/base/io/Console.cpp b/src/base/io/Console.cpp index cb23c4b0..0e5cd269 100644 --- a/src/base/io/Console.cpp +++ b/src/base/io/Console.cpp @@ -53,6 +53,8 @@ xmrig::Console::~Console() void xmrig::Console::stop() { + uv_tty_reset_mode(); + Handle::close(m_tty); m_tty = nullptr; }