>Number: 793 >Category: general >Synopsis: RLimitCPU and RLimitMEM don't apply to all children like they >should >Confidential: no >Severity: serious >Priority: medium >Responsible: apache (Apache HTTP Project) >State: open >Class: change-request >Submitter-Id: apache >Arrival-Date: Thu Jun 26 13:10:01 1997 >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.2.0 >Environment: SunOS sandnews 5.5 Generic sun4m sparc SUNW,SPARCstation-20 cc version 2.7.2.1 >Description: In running some buggy perl scripts using the Apache Perl Module I noticed that RLimitCPU and RLimitMEM were not helping prevent run-away programs from chewing up horrible amounts of system resources.
>How-To-Repeat: Just use a perl script with an infinite loop of some kind, eating memory for good measure. >Fix: Modify the function child_main in the file http_main.c so that it calls the setrlimit functions. I have made these modifications myself, creating a common procedure which can be called by child_main and call_exec so as to minimize codesize and duplication in the source. My apache patches are available at http://cpartner.iacnet.com/apache/ Please forgive the fact that the above web site is running old Netscape software :-). %0 >Audit-Trail: >Unformatted: