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 process without disconnecting the parent dbi
> handle 

I would strongly recommend you connect after the fork. Each process needs to
have its own connection.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to