Use poll() to watch the files.