perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Prime <>
Subject [Fwd: Re: Apache::DBI]
Date Mon, 14 Dec 2009 21:22:13 GMT
This thread is 6 months stale, but Jonathan Swartz just replied to the
RT ticket, and once again brought it to mind.

Can we please do something about this, even if that something is
re-releasing Apache::DBI 1.06 as 1.08 (as pgollucci said he was going to
do over a year and a half ago).



-------- Original Message --------
Subject: Re: Apache::DBI
Date: Mon, 27 Jul 2009 00:06:07 -0400
From: Adam Prime <>
To: Fred Moyer <>
References: <>
<>	 <>
<>	 <>

Adam Prime wrote:
> Fred Moyer wrote:
>> On Tue, Jul 21, 2009 at 8:39 PM, Adam Prime<> wrote:
>>> Adam Prime wrote:
>>>> What I wanted to do was fix this issue:
>> I was just looking over your original code where you connect() in
>>  Won't that cause issues since the database handle will be
>> forked also?  Here's what I have in my
> The code in the ticket was just to illustrate the failure.  I ran into
> this problem because I wanted to preload a large read-only datastructure
> out of the database prior to the fork to get it completely shared
> between all the children.  The handle itself is then disconnected and
> discarded.
> Adam

The patch attached ads code to bail out of connect() calls called prior
to the fork by setting a package global during the ChildInit phase,
along with the other patch which was submitted to the users mailing list.

It works fine for me in extremely limited testing.



View raw message