I have a multithreded application in perl for which I have to rely on several non-thread safe modules, so I have been using fork()
ed processes with kill()
signals as a message passing interface.
The problem is that the signal handlers are a bit erratic (to say the least) and often end up with processes that get killed in inapropriate states.
Is there a better way to do this?