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
fix(logs): drop stale-stat gate, read directly from position
The previous fix (#41) switched `-f` follow mode from fs.watchFile to
userspace polling, but kept the `fsPromise.stat(file).size > position`
gate before reading. On Windows + NTFS, stat() returns a stale size for
a short window after another process appends to the file, so the gate
evaluates false and the read never fires. Linux/macOS happen to update
the size promptly, masking the bug.
Drop the gate and read directly from `position` in a loop until read()
returns 0 bytes. The read() syscall sees the true file end at call time
and doesn't depend on metadata being fresh.
Re-opens #40.
0 commit comments