about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/dtas/pipe.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/dtas/pipe.rb b/lib/dtas/pipe.rb
index 41783d3..a4ce57c 100644
--- a/lib/dtas/pipe.rb
+++ b/lib/dtas/pipe.rb
@@ -22,6 +22,11 @@ class DTAS::Pipe < IO # :nodoc:
     def pipe_size=(_)
     end
   end
+
+  # avoid syscall, we never change IO#nonblock= directly
+  def nonblock?
+    false
+  end
 end
 
 # for non-blocking sinks, this avoids extra fcntl(..., F_GETFL) syscalls