summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaolo Bosetti <[email protected]>2014-01-07 13:51:38 +0100
committerPaolo Bosetti <[email protected]>2014-01-07 13:51:38 +0100
commita613bce3f2f9c9d1633e15a5db910b1fea54039c (patch)
tree29f8b6d6724791eede45d82e855e360d6086ff1f
parent23afaf02dc146346da823f85cea7a51263d0e2b7 (diff)
parent8cee36b1b58b7bc092d87b6c5482b654913ec4d4 (diff)
downloadmruby-a613bce3f2f9c9d1633e15a5db910b1fea54039c.tar.gz
mruby-a613bce3f2f9c9d1633e15a5db910b1fea54039c.zip
Merge branch 'master' of https://github.com/iij/mruby-io
-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