On 06/06/2014 16:01, bruce wrote:
HI.
A test foo.php runs from the cmd line, it appears in the procTBL, and
then dies off, and is removed from the procTBL.
However, if the test -- foo.php & is run, it runs in the background,
but then shows "Stopped" and in the procTBL the foo.php is listed in
the procTBL as "T" or stopped...
For the case of running foo.php & -- the foo.php is permanently listed
as "T" (stopped) in the procTBL.
Is there anyway of creating/running a php/background process so that
when it dies, it does a suicide/self kill process and removes itself
from the procTBL..
thanks
I am guessing the php process is waiting for some tty input - php
compiled with readline can cause this issue -- try php foo.php </dev/null &
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php