Krolyxon
Commit 6695cd4

Branches

Refs →

nsxiv6695cd4

Simplify inotify cleanup

Author
Bert Münnich
Date
2017-05-17 20:14 +0200
Parent
8bce80f
Commit
6695cd4c3409a5a0873cc041fbfa6bb38711149d

+2 −2

1 file changed

  1. M autoreload_inotify.c +2 −2
M autoreload_inotify.c View
@@ -27,8 +27,8 @@
2727
2828 CLEANUP void arl_cleanup(arl_t *arl)
2929 {
30− if (arl->fd != -1 && arl->wd != -1)
31− inotify_rm_watch(arl->fd, arl->wd);
30+ if (arl->fd != -1)
31+ close(arl->fd);
3232 }
3333
3434 static void arl_setup_dir(arl_t *arl, const char *filepath)