jeremy...

hey.. how's yahoo!! anyway, i know you should be able to do this... do you
have any examples of code or can you point me to an example that
demonstrates how to do it...

i've been trying to accomplish this with perl for 2-3 days now with no
luck.. so i know there must be something i'm missing!!!

thanks....

i can provide you with the initial sample test code... it's only 15-20 lines
of code for both the parent/child.. but i'm trying to get a feel for the
process to see how this might work.

thanks!

-bruce


-----Original Message-----
From: Jeremy Zawodny [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 01, 2004 6:26 PM
To: bruce
Cc: [EMAIL PROTECTED]
Subject: Re: a question/issue...


On Sun, Aug 01, 2004 at 09:22:21AM -0700, bruce wrote:
> hi...
>
> i'm testing an app where i want a parent app to create the mysql db
> connection link/handle, and basically pass this handle off to child
> procesess. is there any reason why this can't be done? are there any
> examples of this already being accomplished that you might provide???
>
> as far as i can tell/see, it should be possible. as long as the parent is
> still running, the connection link/handle should still be valid.
>
> i'm going to ultimately be working in perl/php/c but if i can get it
working
> in one language, i can get it in the others as well....
>
> any thoughts/comments/criticisms/etc....

Can you establish a connection in the parent, fork a child, and then
let the child use it?

Yes, you can do that.

But you need to be careful.  If the parent and child *both* try to use
it, chaos will ensue.

Jeremy
--
Jeremy D. Zawodny     |  Perl, Web, MySQL, Linux Magazine, Yahoo!
<[EMAIL PROTECTED]>  |  http://jeremy.zawodny.com/

[book] High Performance MySQL -- http://highperformancemysql.com/


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to