ulimit with php
| From: | Eddy-Das | Date: | Fri, 18 Jul 2003 08:19:11 +0000 |
| Subject: | ulimit with php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-155743@lists.php.net to get a copy of this message | ||
Does any know how to catch the signal sent to a process called by PHP?
eg.
$something =
ulimit -t 30 -otherlimit; ./loop_to_death;
ulimit should return something like SIGALRM
I use exec() but it only give me the exit code (always 128+9), not the signal......
because i need to know the reason of ulimit to terminated that program
whether is CPU time too much, or other limits exceeded
I was delighted to see "proc_get_status" but unluckily the machine only have PHP 4.3.0
.........
(can't install PHP5 because something were missing... XML? forgotten)
Please help!
--
- Eddy Wong
__________________________
inframatrix internet solutions
http://www.inframatrix.com/
正八Eddy
Regular Octa-Eddy
◢■◥■◣
◢◤ ■◥◣
■ ■ ■ 尐貓: eddy@zitez.net
■■■ ■ ■ 尐谷: news://news.fixip.net/chat.ed
■ ■ ■ 尐梳化: news://news.fixip.net/
◥◣ ■◢◤
◥■◢■◤