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.
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.
| [reply] |
|