Patch fpm-bug60199.patch for FPM related Bug #60199
Patch version 2011-11-02 13:39 UTC
Return to Bug #60199 |
Download this patch
Patch Revisions:
Developer: fat@php.net
Index: sapi/fpm/fpm/fpm_main.c
===================================================================
--- sapi/fpm/fpm/fpm_main.c (revision 318604)
+++ sapi/fpm/fpm/fpm_main.c (working copy)
@@ -1830,6 +1830,12 @@
if (errno == EACCES) {
SG(sapi_headers).http_response_code = 403;
PUTS("Access denied.\n");
+#ifdef ENFILE
+ } else if (errno == ENFILE) {
+ SG(sapi_headers).http_response_code = 500;
+ PUTS("Internal Error");
+ zlog(ZLOG_ERROR, "Unable to open '%s': Too many open files", SG(request_info).path_translated);
+#endif
} else {
SG(sapi_headers).http_response_code = 404;
PUTS("No input file specified.\n");
|