summaryrefslogtreecommitdiffhomepage
path: root/tools/unitctl/unit-client-rs/src
diff options
context:
space:
mode:
Diffstat (limited to 'tools/unitctl/unit-client-rs/src')
-rw-r--r--tools/unitctl/unit-client-rs/src/unitd_process.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/unitctl/unit-client-rs/src/unitd_process.rs b/tools/unitctl/unit-client-rs/src/unitd_process.rs
index 2a78bfc6..848f31bc 100644
--- a/tools/unitctl/unit-client-rs/src/unitd_process.rs
+++ b/tools/unitctl/unit-client-rs/src/unitd_process.rs
@@ -64,12 +64,11 @@ impl UnitdProcess {
#[cfg(target_os = "linux")]
if pid_is_dockerized(p.0.as_u32().into()) {
false
- } else {
- let parent_pid = p.1.parent();
- match parent_pid {
- Some(pid) => !unitd_processes.contains_key(&pid),
- None => false,
- }
+ }
+ let parent_pid = p.1.parent();
+ match parent_pid {
+ Some(pid) => !unitd_processes.contains_key(&pid),
+ None => false,
}
})
.map(|p| {