File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ serde_json = "1.0.52"
3535slog = " 2.5.2"
3636slog-term = " 2.5.0"
3737strum = { version = " 0.28.0" , features = [" derive" ] }
38- sysinfo = " 0.31.2 "
38+ sysinfo = " 0.38.4 "
3939tabwriter = " 1.2.1"
4040which = " 8.0.2"
4141yubico_manager = { version = " 0.9.0" , optional = true }
Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ impl CurrentCaller {
2828 get_current_pid ( ) . map_err ( |s| anyhow ! ( "Failed to retrieve current PID: {}" , s) ) ?;
2929 info ! ( "PID: {}" , pid) ;
3030 let mut system = System :: new_with_specifics (
31- RefreshKind :: new ( ) . with_processes (
32- ProcessRefreshKind :: new ( )
31+ RefreshKind :: nothing ( ) . with_processes (
32+ ProcessRefreshKind :: nothing ( )
3333 . with_user ( UpdateKind :: OnlyIfNotSet )
3434 . with_exe ( UpdateKind :: OnlyIfNotSet ) ,
3535 ) ,
3636 ) ;
37- system. refresh_processes ( ProcessesToUpdate :: Some ( & [ pid] ) ) ;
37+ system. refresh_processes ( ProcessesToUpdate :: Some ( & [ pid] ) , false ) ;
3838 let proc = system
3939 . process ( pid)
4040 . ok_or_else ( || anyhow ! ( "Failed to retrieve information of current process" ) ) ?;
@@ -43,7 +43,7 @@ impl CurrentCaller {
4343 . parent ( )
4444 . ok_or_else ( || anyhow ! ( "Failed to retrieve parent PID" ) ) ?;
4545 info ! ( "PPID: {}" , ppid) ;
46- system. refresh_processes ( ProcessesToUpdate :: Some ( & [ ppid] ) ) ;
46+ system. refresh_processes ( ProcessesToUpdate :: Some ( & [ ppid] ) , false ) ;
4747 let pproc = system
4848 . process ( ppid)
4949 . ok_or_else ( || anyhow ! ( "Failed to retrieve information of parent process" ) ) ?;
You can’t perform that action at this time.
0 commit comments