summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-10-02 02:49:45 -0400
committerGitHub <noreply@github.com>2020-10-02 02:49:45 -0400
commitba7738e73ec46548210b96ddfbf52a2773c31168 (patch)
tree56e35333ffe7475ee1fc2d32dc7b20e4edd661ee /src/app
parenta5b95ae8b26c720892cfe2dfbe3b52a6f6eaf546 (diff)
bug: terminate threads, fix blocking poll in input (#262)
Bug fix for improper use of threads, where they were not properly terminated (not really too bad) and the input thread code actually blocked.
Diffstat (limited to 'src/app')
-rw-r--r--src/app/data_harvester/processes.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/data_harvester/processes.rs b/src/app/data_harvester/processes.rs
index 62789146..ce104082 100644
--- a/src/app/data_harvester/processes.rs
+++ b/src/app/data_harvester/processes.rs
@@ -12,6 +12,7 @@ use std::collections::{hash_map::RandomState, HashMap};
use sysinfo::{ProcessExt, ProcessorExt, System, SystemExt};
/// Maximum character length of a /proc/<PID>/stat process name.
+#[cfg(target_os = "linux")]
const MAX_STAT_NAME_LEN: usize = 15;
// TODO: Add value so we know if it's sorted ascending or descending by default?