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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/watchable/fiddle_ino.rb b/lib/dtas/watchable/fiddle_ino.rb
index b24bbf6..3ec72a1 100644
--- a/lib/dtas/watchable/fiddle_ino.rb
+++ b/lib/dtas/watchable/fiddle_ino.rb
@@ -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