in reply to Re: Preventing database handles from going stale
in thread Preventing database handles from going stale
Oh. Wait. I just remembered something.
I'm using a homegrown DBI-helper module that exports a $dbh and has centralized db connect code and so forth so all my other modules don't have to worry so much about that stuff. It also has an
block. The forked children aren't using the db for anything, but if they execute that END block when they exit...END { $dbh->disconnect; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Preventing database handles from going stale
by kyle (Abbot) on Feb 05, 2007 at 19:56 UTC | |
by dsheroh (Monsignor) on Feb 06, 2007 at 01:35 UTC | |
|
Re^3: Preventing database handles from going stale
by ikegami (Patriarch) on Feb 05, 2007 at 19:47 UTC |