> Well, the child is a zombie because the process which called fork
> did not wait() on the child process. This can be accomplished
> asynchronously by handling the SIGCHLD signal. The following (somewhat
> modified to remove unecessary SysV stuff) example comes from the
> perlipc manpage:
>
>
Hi...
Thanks for the help.
I've tried different combinations of using wait. And they all work fine
for making the child exit. But now the problem is that the parent for some
reason is not going to completion. It seems the very first statement in
the parent (after the child) executes, but the rest
Ricardo Kleemann wrote:
>
> Hi,
>
> I'm having a hard time getting fork to work correctly in a cgi script.
>
> Basically I have a time consuming process which I want to be done in the
> background.
>
> I have something like this:
>
> unless (fork) {
>
> # print out result html page
> exit 0;
3 matches
Mail list logo