Browse files

tweak inotify

  • Loading branch information...
1 parent 9d11356 commit 97d8bc2e6692089b0af188659839635674cb0b79 @leafo committed Feb 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/moonc
View
4 bin/moonc
@@ -294,9 +294,9 @@ function create_watcher(files)
print(("%s with inotify [%s]"):format(msg, plural(#dirs, "dir")))
local wd_table = {}
- local handle = inotify:init()
+ local handle = inotify.init()
for _, dir in ipairs(dirs) do
- local wd = handle:addwatch(dir, inotify.IN_MODIFY)
+ local wd = handle:addwatch(dir, inotify.IN_CLOSE_WRITE)
wd_table[wd] = dir
end

0 comments on commit 97d8bc2

Please sign in to comment.