-
Notifications
You must be signed in to change notification settings - Fork 59
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
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
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters