01-05-25 19.44, skrev [EMAIL PROTECTED] p� [EMAIL PROTECTED]
f�ljande:

> 
> Yes, I was wanting the same thing. But I don't think this is possible
> because all the POE stuff is built on IO abstractions. This is derived from
> basic operating system features that allow processes to get somehow
> signalled when stuff is available on a stream. The  DBI stuff is built C
> 'client libraries' that aren't IO oriented. You could always use the
> POE::Wheel::Run module to fork off the dbi call.  Inside the forked perl
> code, you can interact with the database and talk back to the parent
> process using print statements. The hassle with that is that you probably
> will need to make a new connection to the database each time you fork
> something off (I can't imagine how 2 processes can share the same database
> connection).

If you compile mysqlclient with thread support this shouldn't be a problem,
just make sure you don't call disconnect() from the child :) (kill 9,$$; is
your friend :)

Artur

Reply via email to