On Wed, 2005-01-05 at 14:58 -0600, Randy Kobes wrote: > It's probably just me, but just to clarify the wording - > are you saying the use of PerlChildInitHandler, as in > Apache::DBI, *is* a safe way to to initiate database > connections within a startup.pl?
It is, since it doesn't actually open any connections, but rather postpones that until after the fork. That's what connect_on_init() does. > Also, does that depend on > whether one's using threads (assuming the underlying > database engine is thread safe). It's only safe if it runs after the threads are spawned. Not sure if this is the case or not. - Perrin