diff options
author | Eric Wong <e@80x24.org> | 2022-01-23 21:16:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-01-23 21:16:47 +0000 |
commit | 773bfa23614aa483e590d635d732cc523fc38f37 (patch) | |
tree | 0f6b5c5b574b2b64648027521f05e15cb9c72734 /lib/dtas/watchable/fiddle_ino.rb | |
parent | eab2f44b4d02ee5e468a41d50275b6506adf83d6 (diff) | |
download | dtas-773bfa23614aa483e590d635d732cc523fc38f37.tar.gz |
get rid of DTAS::Nonblock wrapper for Ruby <= 2.0
We require 2.3+, nowadays, so jettison a bunch of code.
Diffstat (limited to 'lib/dtas/watchable/fiddle_ino.rb')
-rw-r--r-- | lib/dtas/watchable/fiddle_ino.rb | 2 |
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 |