I have just been trying to work out the behaviour of running a php programm from BASH. If i execute ./my_program.php >> /var/log/mylog 2>&1 & and then terminate the controlling terminal I get a background process which has no controlling terminal, a parent process id of 1 and the process becomes a session leader and process group leader. Everything looks in order as far as this being a proper daemon. So, my question is, is this all correct and the same as running a daemon in say C? Just opening a discussion really to help in my education.
regards Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php