From: matz@... (Yukihiro Matsumoto) Date: 2002-12-10T08:08:18+09:00 Subject: Re: Ruby BUG when using PStore and fork Hi, In message "Ruby BUG when using PStore and fork" on 02/12/10, Jeremy Henty writes: |PStore does not appear to play well with fork. This script | |#!/usr/bin/env ruby | |require 'pstore' |store = PStore.new("/tmp/pstore") |store.transaction do | fork do | store.abort | end | Process.wait | exit |end | | ... results in: | |../pstore_fork_bug.rb:7: [BUG] Unknown longjmp status 7 |ruby 1.6.7 (2002-03-01) [i586-linux] Ah, you can't. "fork" creates copy of the process. Copied child process cannot affect the parent process. How can we abort transaction from the child process. Current pstore does not work well with threads either. matz.