- floor wait was based on wall-clock date: a backward clock step could stretch
the deferral far past FLOOR; $SECONDS is monotonic and bounds it to FLOOR.
- $(date) forked on every drained event; under unrelated churn that burned CPU
for up to FLOOR seconds. Builtin $SECONDS needs no fork.
- last_restart is stamped on every attempt so a failing lswsctrl is limited to
one try per FLOOR instead of retrying on each event.
- IFS= read -r so path names with leading/trailing whitespace are not trimmed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
CI run 6313 Shell-Checks failed "plain site docRoot .htaccess triggers (+0)":
the watcher was tracked as mode 100644 (the image chmods it, a bare CI
checkout does not), so `env ... ols-htaccess-watcher.sh` died with
"Permission denied" and no case ever restarted. Not a watcher logic bug.
- watcher: mode 100755
- watcher: an edit inside the FLOOR window is deferred to the end of the
window (one coalesced restart, bounded by FLOOR) instead of dropped
- test: assert executable bit, launch via bash, kill children before parent
(leaked inotifywait/subshell from earlier sections), add floor/coalesce cases
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6