summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mrblib/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/file.rb b/mrblib/file.rb
index 048fbae80..aaa88616f 100644
--- a/mrblib/file.rb
+++ b/mrblib/file.rb
@@ -16,7 +16,7 @@ class File < IO
@path = fd_or_path
begin
fd = IO.sysopen(@path, mode, perm)
- rescue Errno::EMFILE
+ rescue Errno::EMFILE, Errno::ENFILE
GC.start
fd = IO.sysopen(@path, mode, perm)
end