summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2006-05-29 15:27:02 +0000
committerDave Mitchell <davem@fdisolutions.com>2006-05-29 15:27:02 +0000
commitff806af2ea404e8d06ddc51fb69c5913462e33d3 (patch)
tree557347e022f4a31045045444a9bb153e91540a56 /pp_ctl.c
parent090656d2188162bd37e6423633fb806b30c6408b (diff)
downloadperl-ff806af2ea404e8d06ddc51fb69c5913462e33d3.tar.gz
make require report too many open files error
ie don't continue searching the rest of @INC p4raw-id: //depot/perl@28331
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index c5b475556e..9633ba3a24 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3297,6 +3297,9 @@ PP(pp_require)
tryname += 2;
break;
}
+ else if (errno == EMFILE)
+ /* no point in trying other paths if out of handles */
+ break;
}
}
}