commit 6695cd4c3409a5a0873cc041fbfa6bb38711149d
Author: Bert Münnich <[email protected]>
AuthorDate: Wed May 17 20:14:20 2017 +0200
Commit: Bert Münnich <[email protected]>
CommitDate: Wed May 17 20:14:20 2017 +0200
Simplify inotify cleanup
diff --git a/autoreload_inotify.c b/autoreload_inotify.c
index e44c2f3..8e4d67a 100644
--- a/autoreload_inotify.c
+++ b/autoreload_inotify.c
@@ -27,8 +27,8 @@
CLEANUP void arl_cleanup(arl_t *arl)
{
- if (arl->fd != -1 && arl->wd != -1)
- inotify_rm_watch(arl->fd, arl->wd);
+ if (arl->fd != -1)
+ close(arl->fd);
}
static void arl_setup_dir(arl_t *arl, const char *filepath)