implementing posix_setrlimit
| From: | John Donagher | Date: | Tue, 02 Oct 2001 20:27:12 +0000 |
| Subject: | implementing posix_setrlimit | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-67114@lists.php.net to get a copy of this message | ||
Hello-
We are planning on implementing posix_setrlimit() as a sister function to
posix_getrlimit() to:
a) protect against runaway/buggy programs from bringing the server down and
b) to allow a program that genuinely requires a lot of CPU time and/or memory
to ask for it (by modifying its soft limit all the way up to an
administrator-imposed hard limit)
Is there any particular reason than this has not already been implemented, and
if not, would it be a valid contribution to the PHP language?
Thanks
John
--
John Donagher
Application Engineer, Intacct Corp.
Public key available off http://www.keyserver.net
Key fingerprint = 4024 DF50 56EE 19A3 258A D628 22DE AD56 EEBE 8DDD