On Sun, Sep 11, 2005 at 03:55:47PM -0400, Sam Tregar wrote: > On Sun, 11 Sep 2005, Tim Bunce wrote: > > > Child process will inherit the parents db connection and $dbh. > > When the child process exits perl will DESTROY all objects, > > included the inherited $dbh. That will disconnect the mysql > > socket connection 'behind the back' of the parent. > > > > You must set InactiveDestroy on the inherited $dbh to avoid this. > > Double check it. > > Thanks Tim, you're exactly right. I thought this might have been the > problem but when I tested it I was actually setting InactiveDestroy on > the wrong handle. I'll see if I can come up with a POD patch for DBI > to make it clearer how this is supposed to work, if that's ok with you.
Patches welcome! Tim.
