summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mrblib/file.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/mrblib/file.rb b/mrblib/file.rb
index 18383f303..aa0981930 100644
--- a/mrblib/file.rb
+++ b/mrblib/file.rb
@@ -13,14 +13,7 @@ class File < IO
super(fd_or_path, mode)
else
@path = fd_or_path
- begin
- fd = IO.sysopen(@path, mode, perm)
- rescue RuntimeError => e
- raise FileError, "Could not open file (#{e})"
- rescue Errno::EMFILE, Errno::ENFILE
- GC.start
- fd = IO.sysopen(@path, mode, perm)
- end
+ fd = IO.sysopen(@path, mode, perm)
super(fd, mode)
end
end