in reply to Why was it neccessary to pass a DBI handler by reference?
Create a $dbh. Fork. Child disassociates from the parent. Parent exits. Child's $dbh hopefully stays alive. Parent's $dbh goes out of scope. Parent's $dbh sends close signal to database. Database sends signal that the connection was closed. Child's $dbh gets signal that the connection was closed. Child's $dbh closes.Alternate possibility goes something like the parent signals that he is done and database closes the door on the child. Child tries to use the connection but the door is already closed - so the child closes its own $dbh.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Why was it neccessary to pass a DBI handler by reference?
by kudra (Vicar) on Jan 29, 2004 at 14:09 UTC | |
Re: Re: Why was it neccessary to pass a DBI handler by reference?
by Anonymous Monk on Jan 29, 2004 at 01:17 UTC | |
Re: Re: Why was it neccessary to pass a DBI handler by reference?
by Rhandom (Curate) on Jan 28, 2004 at 19:57 UTC |