logFn retries open() on every call forever if it fails oncelogFn retries open() on every call forever if it fails onceFile: src/main.zig:61–67
Severity: LOW
Status: ✅ FIXED — added log_fd_failed bool; once set, logFn returns immediately.
if (log_fd == null) {
const fd = open(path, O_WRONLY | O_CREAT | O_APPEND, 0o666);
if (fd < 0) return; // log_fd stays null
log_fd = fd;
}
const fd = log_fd.?; // next call: still null, tries again
If open() fails permanently (permission denied, disk full), every subsequent log call re-invokes resolveLogPath and open(). No backoff, no retry limit, no silencing.