- 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