I worked some more on Kirill's AtFork.pm merging it with what I played with in IThread::Jenda (finding good name is always the hardest thing) and the results are I think already useable. The IThread::AtFork module ( http://Jenda.Krynicky.cz/iThreads/IThread-AtFork-0.2.zip ) allows you to add per object instance fork() handlers (something like CLONE() callback but on perl level). The references to the objects registered are "weakref"s. So your objects will be properly destroyed even if you defined handlers on them. I created a "plug-in" for Win32::Semaphore that hides the fork()ing problems and allows you to use Win32::Semaphore just like you are used to. All seems to be working well. As I write in the docs this is NOT a long term solution. Just something to play with and if you are brave enough to use until something better is available. Please let me know what you think. Jenda == [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == : What do people think? What, do people think? :-) -- Larry Wall in <[EMAIL PROTECTED]>
