mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* lib/cgi/session.rb: update rescue in delete session file
only Errno::ENOENT.[Bug #7940] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1dd06612a5
commit
4254686922
1 changed files with 4 additions and 3 deletions
|
@ -435,9 +435,10 @@ class CGI
|
|||
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue