Re: perl cgi problem
On Fri, Aug 08, 2003 at 01:14:43AM +0200, Henning Moll wrote:
> Hi!
>
> I use a perl cgi script to start a daemon via http-request:
>
>
> ---ttt.pl---
> [...]
> system("daemon &");
> [...]
> print "<html> ... </html>";
> ---ttt.pl---
>
> starting of the daemon works, but the http-request is never answered
> completley (That means, the browser is waiting for more data forever...).
>
> The cgi process is not finished, a 'ps -aecf' shows
>
> www-data 12011 12010 - 30 01:14 ? 00:00:00 [ttt.pl] <defunct>
>
> Hmm, <defunct>, what does that mean? How to start the daemon the right way?
Zombie, I believe. The child is waiting to be reaped.
What you want is described in perldoc perlipc.
Complete Dissociation of Child from Parent
--
Bill Moseley
moseley@hank.org
Reply to: