aboutsummaryrefslogtreecommitdiffstats
path: root/waybar-breaktimer.config.jsonc
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-29 11:07:41 +0200
committerDanilo M. <danix@danix.xyz>2026-06-29 11:07:41 +0200
commit12528dccd3a1c7043fb14343c0830345f5015fbf (patch)
treeadeacec67742f333fc79dfed1fd5c021efe898a7 /waybar-breaktimer.config.jsonc
parentabe41b57d39e6fd2d88a1e5e20c921b96d54b65b (diff)
downloadbreaktimer-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 'waybar-breaktimer.config.jsonc')
0 files changed, 0 insertions, 0 deletions