On Tue, Aug 25, 2009 at 8:11 AM, Victor Danilchenko<vic...@askonline.net> wrote:
>        I need to be able to fork an Apache process in daemon form, to do
> some housekeeping which might potentially take a few seconds. However, when
> I do that, I start getting SQL errors (of the "connection lost" type) in the
> browser. I do the fairly standard cleanup to daemonize the child process,
> but of course it needs to retain the SQL socket open.

You can't fork and keep using a database connection.  You have to open
a new connection in the forked process.

>        The Apache2:Subprocess doesn't help me, because I need not to spawn
> an external process, but to finish processing in mod_perl context -- just
> without bugging the user with it.

In that case, just use a cleanup handler instead.

- Perrin

Reply via email to