Simplify inotify cleanup

This commit is contained in:
Bert Münnich 2017-05-17 20:14:20 +02:00
parent 8bce80fdae
commit 6695cd4c34

View file

@ -27,8 +27,8 @@
CLEANUP void arl_cleanup(arl_t *arl) CLEANUP void arl_cleanup(arl_t *arl)
{ {
if (arl->fd != -1 && arl->wd != -1) if (arl->fd != -1)
inotify_rm_watch(arl->fd, arl->wd); close(arl->fd);
} }
static void arl_setup_dir(arl_t *arl, const char *filepath) static void arl_setup_dir(arl_t *arl, const char *filepath)