diff options
author | Přemysl Janouch <p@janouch.name> | 2018-10-23 05:24:56 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-10-24 04:51:16 +0200 |
commit | edf94db8df8c84c672ab281257d8da7798ca293e (patch) | |
tree | 254da7c8c91946c85b7b1ce5454b61c88e333584 | |
parent | 70e391eed0485940da62151e8f894bef41327466 (diff) | |
download | sdn-edf94db8df8c84c672ab281257d8da7798ca293e.tar.gz sdn-edf94db8df8c84c672ab281257d8da7798ca293e.tar.xz sdn-edf94db8df8c84c672ab281257d8da7798ca293e.zip |
Limit inotify to visible events
-rw-r--r-- | sdn.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -495,8 +495,9 @@ fun reload () { if (g.inotify_wd != -1) inotify_rm_watch (g.inotify_fd, g.inotify_wd); + // We don't show atime, so access and open are merely spam g.inotify_wd = inotify_add_watch (g.inotify_fd, buf, - IN_ALL_EVENTS | IN_ONLYDIR); + (IN_ALL_EVENTS | IN_ONLYDIR | IN_EXCL_UNLINK) & ~(IN_ACCESS | IN_OPEN)); } fun search (const wstring &needle) { |