2 ms·You can use kqueue/kevent to poll on a file. That's what tail(1) and other system utilities are using.by stass 12y agoYou can use kqueue/kevent to poll on a file. That's what tail(1) and other system utilities are using.