Re: Daemon & threads
[prev]
[thread]
[next]
[Date index for 2005/01/17]
On Fri, 2005-01-14 at 20:47 +0100, Daniel Wijnands wrote:
> I have build a daemon that has the following design
>
> dameon
> - query database with class-dbi objects
> - triggering some events and start a new thread by fork
>
> thread
> - inherits class::dbi object from daemon
If you have an open database connection, you need to close it before
using that class in another thread.
MyClass->db_Main()->disconnect();
It will automatically re-connect.
- Perrin
|
|
Re: Daemon & threads
Perrin Harkins 21:03 on 17 Jan 2005
|