about summary refs log tree commit homepage
path: root/lib/yahns/worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns/worker.rb')
-rw-r--r--lib/yahns/worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yahns/worker.rb b/lib/yahns/worker.rb
index 0355629..ec5be23 100644
--- a/lib/yahns/worker.rb
+++ b/lib/yahns/worker.rb
@@ -14,8 +14,8 @@ class Yahns::Worker # :nodoc:
       # F_SETPIPE_SZ = 1031, PAGE_SIZE = 4096
       # (fcntl will handle minimum size on platforms where PAGE_SIZE > 4096)
       @to_io.fcntl(1031, 4096)
-    rescue Errno::EINVAL
-      # old kernel
+    rescue SystemCallError
+      # old kernel (EINVAL, EPERM)
     end if RUBY_PLATFORM =~ /\blinux\b/
   end