ruby-changes:28316
From: xibbar <ko1@a...>
Date: Fri, 19 Apr 2013 14:44:33 +0900 (JST)
Subject: [ruby-changes:28316] xibbar:r40368 (trunk): * lib/cgi/session.rb: update use rescue Errno::ENOENT because
xibbar 2013-04-19 14:43:46 +0900 (Fri, 19 Apr 2013) New Revision: 40368 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40368 Log: * lib/cgi/session.rb: update use rescue Errno::ENOENT because session delete shoud try all pattern. Modified files: trunk/lib/cgi/session.rb Index: lib/cgi/session.rb =================================================================== --- lib/cgi/session.rb (revision 40367) +++ lib/cgi/session.rb (revision 40368) @@ -435,10 +435,9 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/session.rb#L435 # Close and delete the session's FileStore file. def delete - File::unlink @path+".lock" - File::unlink @path+".new" - File::unlink @path - rescue Errno::ENOENT + File::unlink @path+".lock" rescue Errno::ENOENT + File::unlink @path+".new" rescue Errno::ENOENT + File::unlink @path rescue Errno::ENOENT end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/