diff options
| author | Tomoyuki Sahara <[email protected]> | 2013-12-13 15:49:32 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2013-12-13 15:49:32 +0900 |
| commit | 8cee36b1b58b7bc092d87b6c5482b654913ec4d4 (patch) | |
| tree | a6be99f7987e329b2736163a421119481260f86f | |
| parent | 87d878292d16bddad811a5cfd897ba27884bec8c (diff) | |
| download | mruby-8cee36b1b58b7bc092d87b6c5482b654913ec4d4.tar.gz mruby-8cee36b1b58b7bc092d87b6c5482b654913ec4d4.zip | |
Catch Errno::ENFILE too.
When system file descriptor table is full, errno is set to
ENFILE instead of EMFILE. They are similar but different.
| -rw-r--r-- | mrblib/file.rb | 2 |
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 |
