Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: fork() and defunct children

by Anonymous Monk
on Feb 12, 2008 at 22:50 UTC ( [id://667695]=note: print w/replies, xml ) Need Help??


in reply to Re: fork() and defunct children
in thread fork() and defunct children

Yes, and yes. But I use InactiveDestroy to prevent the DBH from going away because of the fork. I need to share the handle between the parent and children because the parent might take a global FLUSH TABLES WITH READ LOCK lock and hold it open. During that time the children need to be able to work. I may be able to work around this, though.

Replies are listed 'Best First'.
Re^3: fork() and defunct children
by kyle (Abbot) on Feb 13, 2008 at 03:19 UTC

    I don't know how (or whether) DBD::mysql handles sharing handles across processes, but I suspect what you're trying to do just won't work. If the parent has a lock, the children will have to respect it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://667695]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-25 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found