summaryrefslogtreecommitdiffhomepage
path: root/tools/unitctl/unit-client-rs/src
diff options
context:
space:
mode:
authorAva Hahn <a.hahn@f5.com>2024-05-03 16:14:36 -0700
committeravahahn <110854134+avahahn@users.noreply.github.com>2024-05-08 13:30:08 -0700
commit787980db2e4cdc39c6195584e54661841e542a47 (patch)
treef26c9457049d7a7d4eb64b816a738e99ab6d5bb1 /tools/unitctl/unit-client-rs/src
parente61d9e7a1f80d62fc17f2dabb6e3318eb70bfdbc (diff)
downloadunit-787980db2e4cdc39c6195584e54661841e542a47.tar.gz
unit-787980db2e4cdc39c6195584e54661841e542a47.tar.bz2
tools/unitctl: Improve quality of life on osx
* unit-client-rs Mac build fix * elaborate in Readme on build requirements with examples for Mac users. Signed-off-by: Ava Hahn <a.hahn@f5.com>
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| {