4 Commits
Author SHA1 Message Date
burakgizliceandClaude Opus 4.6 13217f52f8 fix: detect stale PID files from recycled PIDs
The daemon startup check only used kill -0 to verify if the PID from
the PID file was alive. If the OS recycled that PID for an unrelated
process, hyprvoice would refuse to start with "daemon already running"
even though no hyprvoice instance was running.

Now also reads /proc/<pid>/cmdline to verify the process is actually
hyprvoice before treating it as a running daemon. If it's a different
process, the PID file is treated as stale and removed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 09:50:55 +03:00
LeonardoTrapani 4d62dac99e reviewed pid management 2025-08-07 21:09:45 +02:00
LeonardoTrapani 1acd007be0 add pid file, add context for go routines + add proper logging 2025-08-07 18:52:45 +02:00
LeonardoTrapani f7936610c9 setup project with daemon, socket, cmd, air, notifying, state 2025-08-07 00:01:49 +02:00