Skip to content

Commit

Permalink
feat: always resolve windows process names, resolve parents properly,…
Browse files Browse the repository at this point in the history
… lookup tables
  • Loading branch information
jacobtread committed May 22, 2024
1 parent 3cf01ef commit 41ae804
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 113 deletions.
3 changes: 3 additions & 0 deletions src/killport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ use std::{fmt::Display, io::Error};
/// Interface for killable targets such as native process and docker container.
pub trait Killable {
fn kill(&self, signal: KillportSignal) -> Result<bool, Error>;

fn get_type(&self) -> KillableType;

fn get_name(&self) -> String;
}

Expand Down Expand Up @@ -102,6 +104,7 @@ impl KillportOperations for Killport {
if docker_present && process.get_name().to_lowercase().contains("docker") {
continue;
}

target_killables.push(Box::new(process));
}
}
Expand Down
Loading

0 comments on commit 41ae804

Please sign in to comment.