use a pipe to communicate with inotify loop