summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-03 03:14:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-03 03:14:57 +0000
commit46fa18da5bbcaee08a59b15a1f53b2a625c6aa7a (patch)
tree4bd9ac60c9debecac591c37ff93d4c7732828fe4 /io.c
parent4ee717dcaef27087a6a1f701b227beb45e84b8aa (diff)
Revert r11453
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index fa44bf93e1..4118872972 100644
--- a/io.c
+++ b/io.c
@@ -318,7 +318,7 @@ ruby_dup(orig)
fd = dup(orig);
if (fd < 0) {
- if (errno == EMFILE || errno == ENFILE || errno == ENOMEM) {
+ if (errno == EMFILE || errno == ENFILE) {
rb_gc();
fd = dup(orig);
}