Up Prev Next
From: "Wechsler, Steven" <Steven dot Wechsler at mtvstaff dot com>
Subject: RE: What happens to a db-library handle on a fork?
Date: Feb 3 2005 5:40PM
That's what I suspected. Thanks.
From: Michael Peppler [mailto:email@example.com]
Sent: Thursday, February 03, 2005 12:34 PM
Subject: Re: What happens to a db-library handle on a fork?
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
Michael Peppler - firstname.lastname@example.org - http://www.peppler.org/ Sybase
DBA/Developer Sybase on Linux FAQ: http://www.peppler.org/FAQ/linux.html