Hi,
Has anyone tried starting a daemon from a cgi program. I wrote
a daemon and it loads fine from the command line. The parent
process exits as it should and the child keeps running. But
when I try calling the program as a cgi program, the cgi
program (that is the parent process) doesn't seem to exit
until the child also exits. Does anyone know what I need to
do or how I need to write my daemon which is also a cgi
program. Now my browser hangs until the daemon terminates
instead of returning really quickly - or at least that is
what I have expected.
I tried using nested forks and setsid() but didn't seem to
affect anything.
All help would be greatly appriciated.
--
------------------------------------------------------------
Chief Technology Officer (CTO) Fax: 415-547-7735
NetJet Communications Phone: 415-547-7730
Web Publisher to the World http://www.netjet.com/
------------------------------------------------------------