diff options
author | Bert Münnich <ber.t@posteo.de> | 2017-05-17 20:14:20 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2017-05-17 20:14:20 +0200 |
commit | 6695cd4c3409a5a0873cc041fbfa6bb38711149d (patch) | |
tree | 03931d08b4d99d575dbdbca418a4d0dadfbdf4cf | |
parent | 8bce80fdae23d0747efc8547fd33edbd246b54b6 (diff) |
Simplify inotify cleanup
-rw-r--r-- | autoreload_inotify.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |