in reply to Threads/processes under Apache

You're trying to start a daemon from a CGI request? Don't do that. CGI scripts are not supposed to run forever. Make it a stand-alone script.