diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-22 21:54:12 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-22 21:54:12 +0200 |
| commit | 1261fd5d7ff67c907c72fbbd6959d68bd7c8063b (patch) | |
| tree | ce18c0240b0d4fb00bd4d7d1b9829fb0b7d8c152 /crates/daemon/src/main.rs | |
| parent | treewide: Update Cargo.toml metadata (diff) | |
| download | atuin-1261fd5d7ff67c907c72fbbd6959d68bd7c8063b.zip | |
treewide: Upgrade and update dependencies
`rusty_paseto` was left explicitly on v0.8 because the v0.10 is no longer
compatible with `rusty_paserk`.
Diffstat (limited to '')
| -rw-r--r-- | crates/daemon/src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/daemon/src/main.rs b/crates/daemon/src/main.rs index d157d075..50a41775 100644 --- a/crates/daemon/src/main.rs +++ b/crates/daemon/src/main.rs @@ -13,7 +13,6 @@ use std::{ use clap::Parser; use eyre::WrapErr; use eyre::{Result, bail}; -use fs4::fs_std::FileExt; use tracing_subscriber::EnvFilter; use crate::{ @@ -142,7 +141,7 @@ impl PidfileGuard { fn acquire(path: &Path) -> Result<Self> { let mut file = open_lock_file(path)?; - if !file.try_lock_exclusive()? { + if let Err(fs::TryLockError::WouldBlock) = file.try_lock() { bail!( "daemon already running (pidfile lock busy at {})", path.display() |
