From: Joel VanderWerf Date: 2008-10-07T10:00:43+09:00 Subject: Re: Ruby lacks atfork : The evil that lives in fork... John Carter wrote: > Ah, but that's the point of pthread_atfork... it gives you several > possible strategies to allow you to mix threads with processes... You can atfork in ruby; fsdb uses this kind of construct: module ForkSafely def fork # clean up before forking super do # clean up after forking, in child # clean up inconsistent mutexes, etc. yield end # clean up after forking, in parent end end include ForkSafely -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407