about summary refs log tree commit homepage
path: root/lib/dtas/watchable/fiddle_ino.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dtas/watchable/fiddle_ino.rb')
-rw-r--r--lib/dtas/watchable/fiddle_ino.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dtas/watchable/fiddle_ino.rb b/lib/dtas/watchable/fiddle_ino.rb
index e85fea1..3ec72a1 100644
--- a/lib/dtas/watchable/fiddle_ino.rb
+++ b/lib/dtas/watchable/fiddle_ino.rb
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2020 all contributors <dtas-all@nongnu.org>
+# Copyright (C) all contributors <dtas-all@nongnu.org>
 # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 # frozen_string_literal: true
 require 'fiddle'
@@ -22,7 +22,7 @@ class DTAS::Watchable::InotifyReadableIter # :nodoc:
   def initialize # :nodoc:
     fd = Inotify_init.call(02000000 | 04000) # CLOEXEC | NONBLOCK
     raise "inotify_init failed: #{Fiddle.last_error}" if fd < 0
-    @to_io = DTAS::Nonblock.for_fd(fd)
+    @to_io = IO.for_fd(fd)
     @buf = ''.b
     @q = []
   end
@@ -53,7 +53,7 @@ class DTAS::Watchable::InotifyReadableIter # :nodoc:
           name.size == len or raise "short name #{name.inspect} != #{len}"
           name.sub!(/\0+\z/, '') or
             raise "missing: `\\0', inotify_event.name=#{name.inspect}"
-          name = DTAS.dedupe_str(name)
+          name = -name
         end
         ie = InotifyEvent.new(wd, mask, cookie, len, name)
         if event