fsnotify was almost cool, but I quickly hit file descriptor limitations.