Skip to content

Commit

Permalink
fix(lair_keystore): Update sysinfo dependency
Browse files Browse the repository at this point in the history
This resolves an issue with building against a recent libc
  • Loading branch information
ThetaSinner committed Nov 26, 2024
1 parent 462e1e5 commit a8ad5ba
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 12 deletions.
53 changes: 43 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ serde_yaml = "0.9.21"
sodoken = "=0.0.11"
sqlformat = "=0.2.6"
structopt = "0.3.26"
sysinfo = "0.30.12"
sysinfo = "0.32.1"
tempdir = "0.3.7"
time = "0.3.36"
tokio = { version = "1.35.1" }
Expand Down
3 changes: 2 additions & 1 deletion crates/lair_keystore/src/pid_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::{
io::{Read, Write},
str::FromStr,
};
use sysinfo::ProcessesToUpdate;

/// Execute lair pid_check verifying we are the one true Lair process
/// with access to given store / pidfile.
Expand Down Expand Up @@ -56,7 +57,7 @@ fn pid_check_write(
let pid =
sysinfo::Pid::from_str(&String::from_utf8_lossy(&buf))
.map_err(one_err::OneErr::new)?;
sys.refresh_process(pid);
sys.refresh_processes(ProcessesToUpdate::Some(&[pid]), true);
match sys.process(pid) {
Some(process)
if process.name() == env!("CARGO_PKG_NAME") =>
Expand Down

0 comments on commit a8ad5ba

Please sign in to comment.