in reply to Is DBI trapping CHLD sigs, is there a workaround?
What (if anything) happens depends on the database system, what you do to the connection after forking, ...
I don't have the answer to what happens in your case
The problem is that the database system is not prepared to have several process share the same connection - the purpose of the connection is to give a single channel of access, when that is shared evereything might break.
Neither the DBI or the database systems are 'fork-safe'. The DBI is not really threadsafe yet. Most DBD-drivers are definitely not thread safe.
So avoid forking when you have an active database connection.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Is DBI trapping CHLD sigs, is there a workaround?
by Anonymous Monk on Aug 26, 2001 at 00:15 UTC |