Bug 54133 - RLimitNPROC doesn't work :wrong #if RLIMIT_NPROC
Summary: RLimitNPROC doesn't work :wrong #if RLIMIT_NPROC
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_cgi (show other bugs)
Version: 2.4.3
Hardware: All Linux
: P2 regression (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Keywords: FixedInTrunk, PatchAvailable
Depends on:
Reported: 2012-11-11 10:19 UTC by Teodor Milkov
Modified: 2013-03-04 06:27 UTC (History)
0 users

Fix for wrong #if RLIMIT_NPROC (568 bytes, patch)
2012-11-11 10:19 UTC, Teodor Milkov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Teodor Milkov 2012-11-11 10:19:29 UTC
Created attachment 29582 [details]
Fix for wrong #if RLIMIT_NPROC

Wrong check whether nproc limit should be enabled in modules/generators/mod_cgi.c line 439.
See attached patch.
Comment 1 Christophe JAILLET 2012-11-11 12:55:17 UTC
Thanks for the report.

Fixed in trunk.

I'll propose to back-port it to 2.4.x serie.
Comment 2 Christophe JAILLET 2012-11-11 15:16:02 UTC
Here is were it was introduced: 
Comment 3 Christophe JAILLET 2012-11-12 14:55:00 UTC
Back-ported to 2.4.x branch.

Will be available in next stable release.
Comment 4 Christophe JAILLET 2013-03-04 06:27:08 UTC
fixed in 2.4.4