mirror of
https://github.com/uutils/procps.git
synced 2026-05-06 06:06:43 -04:00
ps: Fix priority of -e and --pids options
This commit is contained in:
@@ -82,14 +82,14 @@ impl ProcessSelectionSettings {
|
||||
return Ok(false);
|
||||
}
|
||||
|
||||
if let Some(ref pids) = self.pids {
|
||||
return Ok(pids.contains(&process.pid));
|
||||
}
|
||||
|
||||
if self.select_all {
|
||||
return Ok(true);
|
||||
}
|
||||
|
||||
if let Some(ref pids) = self.pids {
|
||||
return Ok(pids.contains(&process.pid));
|
||||
}
|
||||
|
||||
if self.select_non_session_leaders_with_tty {
|
||||
return Ok(!is_session_leader(process) && process.tty() != Teletype::Unknown);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user