From: matz@... (Yukihiro Matsumoto) Date: 2002-12-13T18:32:49+09:00 Subject: Re: Ruby BUG when using PStore and fork Hi, In message "Re: Ruby BUG when using PStore and fork" on 02/12/13, Jeremy Henty writes: |>|PStore does not appear to play well with fork. | |Update: it is nothing to do with PStore really. The problem is throw |(which PStore uses to implement abort). Update: PStore does not work well with fork, because "throw" does not work with fork. |If I comment out "file.flock(File::LOCK_EX)" in pstore.rb then things |work as I would like. But I don't want to lose the protection of |locking for all pstore applications. I suspect the right thing to do |is to fork before opening the pstore and use IPC to tell the child to |spawn browsers. I had hoped to avoid such complications, but maybe I |should bite the bullet this time. Unless someone has a better |solution? Can you fork before starting transaction? matz.