Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12334 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87485 invoked by uid 1010); 24 Aug 2004 20:40:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71832 invoked from network); 24 Aug 2004 20:32:38 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 24 Aug 2004 20:32:38 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i7OKWbbS009011 for ; Tue, 24 Aug 2004 22:32:37 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i7OKWaoo009000; Tue, 24 Aug 2004 22:32:36 +0200 Date: Tue, 24 Aug 2004 22:32:36 +0200 (CEST) X-X-Sender: derick@localhost To: Marcin =?iso-8859-2?q?Gibu=B3a?= cc: internals@lists.php.net In-Reply-To: <200408242056.45151.mg@iceni.pl> Message-ID: References: <200408242056.45151.mg@iceni.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] posix_setrlimit (patch attached) From: derick@php.net (Derick Rethans) On Tue, 24 Aug 2004, Marcin [iso-8859-2] Gibu?a wrote: > Hi, > this patch adds posix_setrlimit function (in posix extension), which can be > useful in standalone apps to lower your resources limits (for example cpu > limit). > > Example usage is: > $a = array('cpu' => array('1', '3')); > posix_setrlimit($a); > ?> > > Could you review it and consider to apply if it's ok? I browser through it and it seems you put it in the HAVE_GETRLIMIT define, you might want to add a new config/m4 check for it and use HAVE_SETRLIMIT around it. Conceptually I see no reason why we should not add it. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org