in reply to CGI and Background Processes

In Watching Long Processes Through CGI, merlyn closes STDOUT in the child process. Maybe that's what keeps your socket connection open until the child has finished too. I think you could force the page to render by closing STDOUT in the parent and then launching the child, but that way, you lose any way to tell the user that launching the child failed. Maybe you can adapt the code merlyn posted to your needs?

Replies are listed 'Best First'.
Re^2: CGI and Background Processes
by mrguy123 (Hermit) on May 05, 2008 at 13:53 UTC
    Thanks, I tried to close STDOUT but it didn't help.
    I will take a look at merlyn's code, but I understand this means there is no easy solution.