5 messages in com.mysql.lists.perlRe: Fw: [cpan #5135] fork disrupts th...
FromSent OnAttachments
Darren L. Ankney02 Feb 2004 09:34 
Rudy Lippan02 Feb 2004 10:53 
Darren L. Ankney02 Feb 2004 11:09 
Rudy Lippan02 Feb 2004 11:31 
Darren L. Ankney02 Feb 2004 13:32 
Subject:Re: Fw: [cpan #5135] fork disrupts the database connection 2.9002 and 2.9003
From:Darren L. Ankney (perl@network1.net)
Date:02/02/2004 01:32:32 PM
List:com.mysql.lists.perl

Rudy,

Thank you very much - setting InactiveDestroy did the trick... I set it in the parent process...

I appologize for mistakenly thinking this was a bug :)

Thank you,

Darren First Network Group Vice President Product Development 1-800-578-6381 x182 http://www.network1.net

On Mon, 2 Feb 2004, Darren L. Ankney wrote:

Rudy,

Regardless of whether i pass the database connection to the child or not the database connection is still corrupted somehow...

I don't follow here. How do you not pass the database connection to the child?

In my example, the child is doing absolutely nothing but spawning and exiting. No database operations are performed... Nor have i passed the $dbh to the child. Yet still, after spawning the child, the database connection no longer functions for the parent.

You still need to set InactiveDestroy in the child (did I say parrent before :) ) because when the child exists it will destroy its copy of the $dbh and close the connection to the database.