This commit is contained in:
Paolo Bosetti
2014-01-07 13:51:38 +01:00
+1 -1
View File
@@ -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