diff options
author | Přemysl Janouch <p@janouch.name> | 2019-09-27 23:06:12 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2019-09-27 23:06:12 +0200 |
commit | 7cce0cc2fd47d474a58371f210a38261c222c3ec (patch) | |
tree | cfd77f266c9deafa1b2c07422e48ea0ab2bdf6d3 /sdn.cpp | |
parent | bf38e4e9eaa08fbfeee69e3340594819942abf13 (diff) | |
download | sdn-7cce0cc2fd47d474a58371f210a38261c222c3ec.tar.gz sdn-7cce0cc2fd47d474a58371f210a38261c222c3ec.tar.xz sdn-7cce0cc2fd47d474a58371f210a38261c222c3ec.zip |
Fix change notifications
Another embarrassing 71fbaca regression.
Diffstat (limited to 'sdn.cpp')
-rw-r--r-- | sdn.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -806,8 +806,7 @@ fun reload (const string &old_cwd) { inotify_rm_watch (g.inotify_fd, g.inotify_wd); // We don't show atime, so access and open are merely spam - char buf[PATH_MAX]; - g.inotify_wd = inotify_add_watch (g.inotify_fd, buf, + g.inotify_wd = inotify_add_watch (g.inotify_fd, ".", (IN_ALL_EVENTS | IN_ONLYDIR | IN_EXCL_UNLINK) & ~(IN_ACCESS | IN_OPEN)); } |