summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJos Dehaes <jos.dehaes@gmail.com>2021-10-06 14:16:38 +0200
committerJos Dehaes <jos.dehaes@gmail.com>2021-10-06 14:16:38 +0200
commit8c67967775fb98bda80eee40cb6833a00bfb93a1 (patch)
tree95a9db11fd6a3826edaf452558889dc4a560ab3c
parent70b47d2ca8a7e0927cf9613e8fe776d2405f60ee (diff)
reduce diff more
-rw-r--r--src/btop.cpp4
1 files changed, 1 insertions, 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<string, uint_fast8_t> 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;