From: Tilman Sauerbeck Date: 2005-04-25T23:37:07+09:00 Subject: Re: [PATCH] tempfile.rb nobu.nokada@softhome.net [2005-04-25 23:27]: > At Mon, 25 Apr 2005 23:01:37 +0900, > Tilman Sauerbeck wrote in [ruby-core:04786]: > > > This was then fixed in CVS by making Tempfile#_close only set @data[1] > > > to nil if @data isn't nil. > > > > > > I suspect that this isn't the right way to fix it, maybe it's better to > > > only set @data[1] to nil instead of @data in #unlink (and #close!)? > > > > > > Attached a diff against CVS HEAD. > > Your example worked fine with 1.9, so it should be backported > from HEAD to 1.8, not patching against HEAD? My point is that the code in HEAD looks suspicious, so I sent in a better patch to fix the problem. But yes, the original fix (and my patch probably) need to be backported to 1.8. -- Regards, Tilman