From 8c67967775fb98bda80eee40cb6833a00bfb93a1 Mon Sep 17 00:00:00 2001 From: Jos Dehaes Date: Wed, 6 Oct 2021 14:16:38 +0200 Subject: reduce diff more --- src/btop.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/btop.cpp b/src/btop.cpp index 42c8c29..2977eb8 100644 --- a/src/btop.cpp +++ b/src/btop.cpp @@ -304,9 +304,9 @@ namespace Runner { string empty_bg; bool pause_output = false; sigset_t mask; - pthread_t runner_id; pthread_mutex_t mtx; + const unordered_flat_map box_bits = { {"proc", 0b0000'0001}, {"net", 0b0000'0100}, @@ -383,7 +383,6 @@ namespace Runner { thread_lock pt_lck(mtx); if (pt_lck.status != 0) { Global::exit_error_msg = "Exception in runner thread -> pthread_mutex_lock error id: " + to_string(pt_lck.status); - Logger::error(Global::exit_error_msg); Global::thread_exception = true; Input::interrupt = true; stopping = true; @@ -537,7 +536,6 @@ namespace Runner { } catch (const std::exception& e) { Global::exit_error_msg = "Exception in runner thread -> " + (string)e.what(); - Logger::error(Global::exit_error_msg); Global::thread_exception = true; Input::interrupt = true; stopping = true; -- cgit v1.2.3