Skip to main content

resolve_targets_excluding_self

Function resolve_targets_excluding_self 

Source
pub fn resolve_targets_excluding_self(
    targets: &[String],
) -> (Vec<Process>, Vec<String>)
Expand description

Resolve multiple targets, excluding the current process (self)

Use this for destructive commands (kill, stop) to avoid proc killing itself when the target pattern matches proc’s own command line arguments.