Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes Process.with_name to sort pids by id (#589)
* Changes Process.with_name to sort pids by id Prior to selecting max key by start time, this change sorts the keys to ascending to take the higher PID in case of all records having an equal `start_time()` see: https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3011-3012 This is to fix a case where attempting to attach to steam proton processes on linux may return two PIDs with the same start_time, potentially selecting the wrong pid indefinitely.
- Loading branch information