diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-03 02:51:44 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-03 02:51:44 +0000 |
commit | 4ee717dcaef27087a6a1f701b227beb45e84b8aa (patch) | |
tree | a5fba77962138de697ff831922e2b54e167bc8f3 /io.c | |
parent | a0c3379cb90fea6254fe4c5c8aec77e9ffb6a98b (diff) |
* io.c (ruby_dup): start GC on ENOMEM as well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -318,7 +318,7 @@ ruby_dup(orig) fd = dup(orig); if (fd < 0) { - if (errno == EMFILE || errno == ENFILE) { + if (errno == EMFILE || errno == ENFILE || errno == ENOMEM) { rb_gc(); fd = dup(orig); } |