(wrong string) ünnich

From: <git_AT_suckless.org>
Date: Wed, 17 May 2017 20:26:18 +0200 (CEST)

commit 6695cd4c3409a5a0873cc041fbfa6bb38711149d
Author: Bert Münnich <ber.t_AT_posteo.de>
AuthorDate: Wed May 17 20:14:20 2017 +0200
Commit: Bert Münnich <ber.t_AT_posteo.de>
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
_AT_@ -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)
Received on Wed May 17 2017 - 20:26:18 CEST

This archive was generated by hypermail 2.3.0 : Wed May 17 2017 - 20:36:49 CEST