]> granicus.if.org Git - apache/commitdiff
Merge r1407965 from trunk:
authorJim Jagielski <jim@apache.org>
Mon, 12 Nov 2012 14:19:00 +0000 (14:19 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 12 Nov 2012 14:19:00 +0000 (14:19 +0000)
Replace an incorrect #if by the correct corresponding #if defined(...)

PR 54133 reported by Teodor Milkov ()
Submitted by: jailletc36
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1408296 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/generators/mod_cgi.c

diff --git a/STATUS b/STATUS
index 5e52714a7d9d2b653c6207805748bd8d104973d4..a57389bf8c4d719eec4f26fad882e1d3167210d4 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -89,12 +89,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-   * mod_cgi: RLimitNPROC doesn't work: wrong #if RLIMIT_NPROC
-     PR 54133.
-     trunk patch: http://svn.apache.org/viewvc?rev=1407965&view=rev
-     2.4.x patch: trunk patch works (minus CHANGES):
-     +1: jailletc36, trawick, jim
-
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
index a609654524f75bdff0a34833cd8f1ce2ae2231cb..5a0cb382961eaf355a6cc455a25a46e8c7cc600a 100644 (file)
@@ -436,7 +436,7 @@ static apr_status_t run_cgi_child(apr_file_t **script_out,
         ((rc = apr_procattr_limit_set(procattr, APR_LIMIT_MEM,
                                       conf->limit_mem)) != APR_SUCCESS) ||
 #endif
-#if RLIMIT_NPROC && defined(AP_CGI_USE_RLIMIT)
+#if defined(RLIMIT_NPROC) && defined(AP_CGI_USE_RLIMIT)
         ((rc = apr_procattr_limit_set(procattr, APR_LIMIT_NPROC,
                                       conf->limit_nproc)) != APR_SUCCESS) ||
 #endif