Is there a way to monitor my filesystem without polling every second? I'am lookling for a way to watch for new files under some directory and watch for file changes, and it should be a real-time solution. It seems to me, that kqueue is the key to this, but I haven't found a program in ports that could do file monitoring this way. Also a related question on tail. When tail is invoked like this Code: tail -f some_file is it polling the file or is it using some other mechanism?