aboutsummaryrefslogtreecommitdiffstats
path: root/crates/daemon/src/main.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-22 21:54:12 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-22 21:54:12 +0200
commit1261fd5d7ff67c907c72fbbd6959d68bd7c8063b (patch)
treece18c0240b0d4fb00bd4d7d1b9829fb0b7d8c152 /crates/daemon/src/main.rs
parenttreewide: Update Cargo.toml metadata (diff)
downloadatuin-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 'crates/daemon/src/main.rs')
-rw-r--r--crates/daemon/src/main.rs3
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()