diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-29 11:07:41 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-29 11:07:41 +0200 |
| commit | 12528dccd3a1c7043fb14343c0830345f5015fbf (patch) | |
| tree | adeacec67742f333fc79dfed1fd5c021efe898a7 /README.md | |
| parent | abe41b57d39e6fd2d88a1e5e20c921b96d54b65b (diff) | |
| download | breaktimer-12528dccd3a1c7043fb14343c0830345f5015fbf.tar.gz breaktimer-12528dccd3a1c7043fb14343c0830345f5015fbf.zip | |
Fix duplicate daemon spawn on login via atomic PID claim
Replace the check-then-write singleton guard in run_loop with an atomic
noclobber PID-file claim. The old guard read the PID file then wrote it
in two steps; two starts racing (e.g. a fast double-login) could both
read a stale PID and spawn duplicate daemons. With noclobber only the
first writer creates the file; the loser aborts, and a stale PID from a
previous session is taken over rather than duplicated.
Also document install (~/bin copy) and autostart in CLAUDE.md.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions
