From: Daniel Berger Date: 2003-05-08T03:31:50+09:00 Subject: PStore and tempfiles - bug? Hi all, Ruby 1.6.8 and 1.8.0p2 Solaris 9 When I call PStore.new multiple times, in some cases there are temp files left over on my filesystem. # Begin code sample - seems to work ok. require "pstore" store = PStore.new("temp.store") store.transaction{ store["foo"] = "Hello World!" } store = PStore.new("temp.store") store.transaction{ p store["foo"] # -> "Hello World!" } # End code sample Using the above code, I end up with "temp.store" and "temp.store~" on my filesystem. I tried rescuing the second call to PStore.new as well just in case, but I didn't catch any Exceptions. So, really I have three questions: Why is it creating a tempfile? Assuming it's supposed to create a tempfile, why isn't it removed when the program is complete? Lastly, are there any potential problems associated with the tempfile or can I safely ignore this issue? Regards, Dan -- p ["010100101010111011001110001011100000010010000010011101101111011000101110000101101010011001001110000001000100101010101110010001101001111000000100000100101000011011000110110101101010011001001110"].pack("b*")