Implementing tail -f in Linux
During implementation of utility (which purpose does not matter in context of this post) we needed to implement tail -f like behavior (i.e continuously read file updates). Traditional I/O multiplexing API (either POSIX select(2)/poll(2) or Linux specific epoll(2) does not work on regular files and return that file is always readable or EPERM error, depending on interface used.
gilbertas matusevičius