You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Signal Handling: Added signal-hook crate for graceful SIGTERM/SIGHUP/SIGINT handling in Rust daemon — prevents mid-operation termination during do_update/apply_hosts
PID File Liveness Check: acquire_lock() now verifies PID liveness via kill -0 before blocking; atomic write (.tmp + rename) prevents stale lock corruption
File Descriptor Limit: Daemon sets RLIMIT_NOFILE=65536 at startup via nix::sys::resource — eliminates "Too many open files" during concurrent do_update operations
Memory Pressure Guard: Pre-flight /proc/meminfoMemAvailable check before large allocation in do_update — aborts if < 20 MB free, prevents OOM kill mid-write
Firewall Race Reduction: Reduced firewall_tick_stride from 6→2 (30s→10s) in Supervisor; event-driven dnsmasq detection for faster iptables rule restoration
Resource Hygiene: All file opens use O_CLOEXEC; watchdog.sh adds trap 'wait' CHLD to reap zombie children
Observability Improvements
Graceful shutdown logging with reason (signal received, error, normal)