summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2022-02-20 11:24:54 -0500
committerDan Davison <dandavison7@gmail.com>2022-02-20 11:30:09 -0500
commit2db54632c73d2e19e4fcb4e0e74f2ad82c390738 (patch)
tree47a31087665dccf8ea24d2b448a3087c523d3a0f
parent963e32bf8708c4e637f89f1ae8f775f0e4e1fff8 (diff)
Revert "Re-enable full process scans on Linux"
-rw-r--r--src/utils/process.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/utils/process.rs b/src/utils/process.rs
index a2984090..daefe76c 100644
--- a/src/utils/process.rs
+++ b/src/utils/process.rs
@@ -508,8 +508,13 @@ where
match info.find_sibling_in_refreshed_processes(my_pid, &extract_args) {
None => {
- info.refresh_processes();
- info.find_sibling_in_refreshed_processes(my_pid, &extract_args)
+ #[cfg(test)]
+ {
+ info.refresh_processes();
+ info.find_sibling_in_refreshed_processes(my_pid, &extract_args)
+ }
+ #[cfg(not(test))]
+ None
}
some => some,
}