Re: db handles with fork()

2005-03-30 Thread Felix Geerinckx
On 30/03/2005, Ramprasad A Padmanabhan wrote: >I am writing a perl application that connect to a database and then > does a fork() > The child completes the process and does a exit(), but the problem is > it closes the database connection which the parent would like to use. > > Can I exit the

RE: db handles with fork()

2005-03-30 Thread Ramprasad A Padmanabhan
> I would strongly recommend you connect after the fork. Each process needs to > have its own connection. Thanks for the reply. Even I had thought so, probably for efficiency I can use dbi cached_connect Ram -- Netcore Solutions Pvt

RE: db handles with fork()

2005-03-30 Thread Bob Showalter
Ramprasad A Padmanabhan wrote: > Hi, >I am writing a perl application that connect to a database and then > does a fork() > The child completes the process and does a exit(), but the problem is > it closes the database connection which the parent would like to use. > > Can I exit the child pro