in reply to Using fork with DBI to create simultaneous db connections.
In general, you can't use a DBH across a fork. I don't know of any db clients where the handle will survive a fork.
You write, however,
it appears that all the children end up sharing the same DBHHow did you check for that? The good way to check would be to have your program fork, let each child open a connection, then sleep for a minute or something. During that time, log on to the database using another tool (Toad or DB-Artisan or something) and see how many connections are in your name. If the numbers agree, you're done.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using fork with DBI to create simultaneous db connections.
by thor (Priest) on Feb 08, 2005 at 04:26 UTC | |
by etcshadow (Priest) on Feb 08, 2005 at 05:34 UTC | |
by thor (Priest) on Feb 08, 2005 at 12:46 UTC |