summaryrefslogtreecommitdiff
path: root/src/log_tail.c
AgeCommit message (Collapse)Author
36 hoursResolve symlinks in log_tail_init so inotify watches real fileauric
inotify watches the symlink inode itself, not the target, so IN_MODIFY never fires when the target file is written. Use realpath() to resolve the configured path before open() and inotify_add_watch(), allowing a stable symlink (e.g. current.log) in the unit YAML that gets re-resolved to the actual log file on each init/SIGHUP. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
37 hoursFix log tail rotation handling and SIGHUP cleanupauric
- Detect IN_MOVE_SELF/IN_DELETE_SELF events in log_tail_handle and re-open the watched path so srcds log rotation is followed correctly - Parse inotify events rather than blindly draining them - Call log_tail_cleanup() before log_tail_init() on SIGHUP to prevent fd leaks on reload Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3 daysAdd Umbrella 0.1.5auric