|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: What happens to a db-library handle on a fork?
Date: Feb 3 2005 5:34PM
On Thu, 2005-02-03 at 17:35, Wechsler, Steven wrote:
> I'm creating a loop which will create multiple chld processes. Before
> the loop I open up a DB handle, which needs to stay open while this
> fork occurs, but the children do not need access to the database.
> Should I explicitly close the handle in each child, just ignore it, or
> do something else?
You should probably ignore it.
If you close it explicitly I suspect that the server will see that as
the connection being closed, and the parent will get an error if it
tries to access it.
Michael
--
Michael Peppler - mpeppler@peppler.org - http://www.peppler.org/
Sybase DBA/Developer
Sybase on Linux FAQ: http://www.peppler.org/FAQ/linux.html
|