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