Re: Daemon & threads

[prev] [thread] [next] [Date index for 2005/01/17]

From: Perrin Harkins
Subject: Re: Daemon & threads
Date: 21:03 on 17 Jan 2005
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

Daemon & threads
Daniel Wijnands 19:47 on 14 Jan 2005

Re: Daemon & threads
Perrin Harkins 21:03 on 17 Jan 2005

Generated at 17:42 on 27 Jan 2005 by mariachi v0.52