ruby-changes:28315
From: xibbar <ko1@a...>
Date: Fri, 19 Apr 2013 14:26:01 +0900 (JST)
Subject: [ruby-changes:28315] xibbar:r40367 (trunk): * lib/cgi/session.rb: update rescue in delete session file
xibbar 2013-04-19 14:25:51 +0900 (Fri, 19 Apr 2013) New Revision: 40367 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40367 Log: * lib/cgi/session.rb: update rescue in delete session file only Errno::ENOENT.[Bug #7940] Modified files: trunk/lib/cgi/session.rb Index: lib/cgi/session.rb =================================================================== --- lib/cgi/session.rb (revision 40366) +++ lib/cgi/session.rb (revision 40367) @@ -435,9 +435,10 @@ 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" rescue nil - File::unlink @path+".new" rescue nil - File::unlink @path rescue Errno::ENOENT + File::unlink @path+".lock" + File::unlink @path+".new" + File::unlink @path + rescue Errno::ENOENT end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/