db64d9cbc3
Added explicit file descriptor close (exec 9>&-) in trap handler to prevent file descriptor leaks. While bash cleans up FDs on exit, explicit closure is proper practice and prevents potential issues in long-running processes. Changes: - trap handler now: flock -u 9; exec 9>&-; rm -f; cleanup - Ensures FD 9 is explicitly closed before process exit Impact: - Prevents potential FD exhaustion in edge cases - Follows bash best practices - Zero functional impact Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>