From: Luis Lavena Date: 2009-08-21T06:32:28+09:00 Subject: [ruby-core:25007] Re: [Bug #1494] tempfile#unlink may silently fail on windows On Thu, Aug 20, 2009 at 6:24 PM, Jeremy Kemper wrote: > Issue #1494 has been updated by Jeremy Kemper. > > > Please revert this change. It's causing major issues for everyone BUT windows. > > http://groups.google.com/group/rack-devel/browse_thread/thread/a2aab3a4720f34c4 > > Please restore the previous, sane behavior and come up a different, non-regressive fix for the original concern. > > It's bad enough, and there's no response to the issue, to fork the tempfile stdlib: http://github.com/FooBarWidget/better/blob/master/lib/better/tempfile.rb#L28 Sorry to chime in, but why when it rescue the Errno::EACCES, it doesn't close and then retry? Instead of just silently fail. http://github.com/FooBarWidget/better/blob/master/lib/better/tempfile.rb#L336 If the error is known, and the workaround is also known, why we should keep rescuing this in our when when the library is just plainly ignoring it? -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup�ry